Crestron SIMPL+
Language Reference Guide - DOC. 5797G
®
IF - ELSE
Name:
IF - ELSE
Syntax:
IF ( <expression>)
[{]
<statements>
[}]
[ELSE]
[{]
<statements>
[}]]
Since <statements> can be an IF construct, you can string out a series of IF-ELSE-IF
statements of the form:
IF (<expression>)
[{]
<statements>
[}]
[ELSE] IF (<expression>)
[{]
<statements>
[}]]
NOTE: A final ELSE may be used to express default handling if none of the previous
conditions were met.
IF (<expression>)
[{]
<statements>
[}]
[ELSE] IF (<expression>)
[{]
<statements>
[}]
[ELSE]
[{]
<statements>
[}]
Software
®
SIMPL+
89