Rule Condition
The following section describes the expressions that can be used in the conditional part of a rule. The conditional part of a rule consists of one or more expressions, which are connected with the “AND” or “OR” keywords. For example,
1. IF Policy.Driver.Age > 70 THEN Policy.Premium = 300
The conditional part of this rule has one expression: Policy.Driver.Age > 70
2. If Account.State='CLOSED' AND Account.Balance<>0 Then
REPORT ERROR 'Account with non-zero balance cannot be closed'
The conditional part of this rule has two expressions:
- Account.State='CLOSED'
- Account.Balance<>0
3. If Policy.Driver.Age < 70 AND (Policy.Driver.PostCode BETWEEN 2010 AND 2040 OR Policy.Driver.PostCode BETWEEN 2060 AND 2070) Then Policy.Premium = 250
The conditional part of this rule has three expressions:
- Policy.Driver.Age < 70
- Policy.Driver.PostCode BETWEEN 2010 AND 2040
- Policy.Driver.PostCode BETWEEN 2060 AND 2070
The rest of this section describes various types of expressions that can be used in the conditional part of the rule. See: