if-then Keywords
The
if
keyword of an if-then pair sets off conditions that must be satisfied for a rule to execute; the
then
keyword defines the action(s) to be taken if these conditions are true. Whenever a rule contains an
if
keyword, it must contain a corresponding
then
keyword.
A rule may contain more than one if-then construct. If so, one may be “nested” within another.
The if-then format is displayed in Free Form Editing below and duplicated in the Structured Editing without the need to type in the keywords or the conditions and actions.
if (condition)
then {action();}
The phrases
(condition) and
{action();} are simply placeholders. As you build a rule, you would replace them with appropriate statements. The words
if
and
then
remain in the finished rule. The semicolon must follow the action() defined by a
then
keyword.