Difference between revisions of "IF/ENDIF"
From Zenitel Wiki
Line 3: | Line 3: | ||
IF - ENDIF statements can be nested | IF - ENDIF statements can be nested | ||
− | The statement [[STOP]] stops the execution of the action string. | + | The statement [[STOP]] stops the execution of the action string. |
Example: | Example: |
Revision as of 14:49, 4 April 2008
The IF and ENDIF statements are used in the Event Handler. If the text/expression following the IF evaluates to the number zero, or no text at all, the following statements are skipped until a (matching) ENDIF is found.
IF - ENDIF statements can be nested
The statement STOP stops the execution of the action string.
Example:
IF %udd(1) LOG “Variable 1 is true” STOP ENDIF LOG “Variable 1 is false”