Crestron simpl plus language ref 사용자 설명서

다운로드
페이지 374
Crestron SIMPL+
®
Software 
Language Reference Guide - DOC. 5797G
 SIMPL+
®
 
z 89
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>
[}]]
IF (<expression>) 
[{]
<statements>
[}]
[ELSE] IF (<expression>)
[{]
<statements>
[}]
[ELSE]
[{]
<statements>
[}]
NOTE: A final ELSE may be used to express default handling if none of the previous 
conditions were met.