IF/ENDIF: Difference between revisions
From Zenitel Wiki
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
IF and ENDIF | 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 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 | IF - ENDIF statements can be nested | ||
The statement STOP stops the execution of the action string. Is only useful in front of an ENDIF | |||
The statement [[STOP]] stops the execution of the action string. Is only useful in front of an ENDIF | |||
Example: | Example: | ||
IF %udd(1) | |||
LOG “Variable 1 is true” | |||
STOP | |||
ENDIF | |||
LOG “Variable 1 is false” | |||
Revision as of 14:48, 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. Is only useful in front of an ENDIF
Example:
IF %udd(1) LOG “Variable 1 is true” STOP ENDIF LOG “Variable 1 is false”
