If/Then/Else Rule

  • Updated

An If/Then/Else Rule is a rule that has multiple if conditions and an otherwise condition. The difference between this rule construct and an if-then is that you can add multiple conditions between the then and the else providing for a number of conditions that can be evaluated before "defaulting" to the else/otherwise condition. This is similar to the select-case construct found in programming languages. Each condition is equivalent to an If/Then Rule.

When you add a new If/Then/Else rule, a default structure of two conditions (or If/Then rules) and an otherwise is added. In the example below, two conditions have been entered with their corresponding Set Value actions:


If/Then/Else Rules execute the If/Then Rules in the order they appear in the tree. The If/Then Rules in the If/Then/Else Rules list are mutually exclusive. The rule engine will process each rule in the order they appear until a condition is satisfied. Once satisfied, the engine will process the list of Rules and Actions under the satisfied rule and stop processing the list of conditions for this If/Then/ Else Rule.

If/Then/Else Rules may be added to a rule set or as sub-rules of an If/Then Rule. An If/Then/Else Rule cannot be added as a first level condition (e.g. in place of an If/Then Rule) of another If/Then/ Else Rule because it does not have a single condition to evaluate.



Specifies the name of the rule.


Each conditions is an If-Then construct.

Please see About Expressions for more information on how to build a rule condition.


Actions or other rule components can be added here 


Was this article helpful?

0 out of 0 found this helpful



Please sign in to leave a comment.