else (in rule)
In rule definitions, the else keyword executes an alternate action block depending on the value of an evaluate statement.
Purpose
In the condition part of a rule, this keyword is used to execute an alternate action block depending on the value of an evaluate statement.
Context
Rule definitions
Syntax
rule ruleName {
when {condition evaluate (expression)}
then {[action1 ... actionm]}
else {[action1 ... actionp]}
};
Description
When the condition part of the rule ends with an evaluate statement, the action part can have an else part, which is executed if the last evaluate statement returns false. If it returns true, the then part is executed.