Actions

IF/ENDIF: Difference between revisions

From Zenitel Wiki

No edit summary
No edit summary
Line 1: Line 1:
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'''  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 IF - ENDIF statements can be nested.

Revision as of 12:21, 11 May 2010

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)
  LOG “Variable 1 is true”
  STOP
ENDIF
LOG “Variable 1 is false”
MediaWiki spam blocked by CleanTalk.