Reference > Rule Languages > ILOG Rule Language > IRL Keywords > else (in rule)

Summary

A keyword for executing an alternate action block according to the value of an evaluate statement in the condition part. This keyword is used in rule definitions.

Syntax

rule ruleName {
when {conditioni evaluate (expression)}
then {[action1 ... actionm]}
else {[action1 ... actionp]}
};  

Description

In the case where the condition part of the rule ends with an evaluate statement, the action part can have an else part, executed if the evaluate statement returns false. If it returns true, the then part is executed.

See Also

evaluate, rule