Difference between revisions of "IF/ENDIF"
From Zenitel Wiki
Line 7: | Line 7: | ||
Example: | Example: | ||
− | + | ||
+ | {{code|IF %udd(1) | ||
LOG “Variable 1 is true” | LOG “Variable 1 is true” | ||
STOP | STOP | ||
ENDIF | ENDIF | ||
− | LOG “Variable 1 is false” | + | LOG “Variable 1 is false”}} |
Revision as of 14:29, 11 October 2019
The IF and ENDIF statements are used in the Event Handler. If the expression following the IF evaluates to the number zero, the following statements are skipped until a (matching) ENDIF is found. The IF statement can test numeric values only.
The IF - ENDIF statements can be nested.
The statement STOP stops the execution of the action string.
Example:
IF %udd(1)
|