Numbers Comparator

The Numbers Comparator compares a numerical property with a numerical value or another numerical property. Five comparison operators are available:

When inserted in the decision tree, the Numbers Comparator component creates two separate branches:

When the component is executed, only one branch is activated depending on the test result.

Use

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:

  1. 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.

  2. Describe the pricing of each decision tree branch by using a Function component.

Example

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).

Identification area

Name: Type the name of the component (mandatory).

Description: Allows you to type the description of the component (optional).

Definition tab

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:

Comparison value: Provides the list of numerical properties or allows you to type a numerical value. Do one of the following: