|
Note: You can use this component in a price plan, in a pricing macro, in a charging plan, or in a refill plan (refill logic). |
The Numbers Comparator compares a numerical
property with a numerical value or another numerical property. Five comparison
operators are available:
Is equal to
Is greater than
Is less than
Is greater than or equal to
Is less than or equal to
When inserted in the decision tree, the Numbers Comparator component creates two separate branches:
A branch that is activated when the comparison is true
A branch that is activated when the comparison is false
When the component is executed, only one branch is activated depending on the test result.
In a price plan, if you want to apply different prices to branches according to the value of a specific property, you may need to compare a property with a numerical value or another property. To use the Numbers Comparator inside your price plan, do the following:
After you add the component, choose the first property, the value or the second property to compare with the first one, and then the Comparator operator.
Describe the pricing of each decision tree branch by using a Function component.
In a monthly telephone plan, calls are free if the total duration of all the calls per month does not exceed the amount that is specified in the plan. If the total duration exceeds this amount, each call costs $0.34 per minute. The following table presents information that you need to set up the Numbers Comparator component inside the price plan:
|
Data |
Settings |
|
First property |
Total duration of all calls per month |
|
Comparator operator |
“is greater than” |
|
Second property |
Duration of the monthly plan |
|
Pricing rules |
Price that is applied to the “is greater than” branch: $0.34 per minute. Price that is applied to the “is less than or equal to” branch: $0.00 per minute (free). |
Name: Type the name of the component (mandatory).
Description: Allows you to type the description of the component (optional).
Property Name: Provides the list of numerical properties. Select the first numerical property.
Operator: Provides the list of comparison operators. Select one of the following operators:
is equal to
is greater than
is smaller than
is greater or equal to
is smaller or equal to
Comparison value: Provides the list of numerical properties or allows you to type a numerical value. Do one of the following:
Select the second property to compare with the first property
Type the numerical value to compare with the first property