An IF
statement has the form:
IF B_1 THEN S_1 ELSIF B_2 THEN S_2 ... ELSIF B_n THEN S_n ELSE S_0 ENDwhere the
B
's are boolean expressions and the S
's are
statements. The ``ELSE S_0
'' and each ``ELSIF
B_
THEN
S_
'' are optional.
The statement evaluates the B
's in order until some B_
evaluates to TRUE
, and then executes S_
. If none of the
expressions evaluates to TRUE
and ``ELSE S_0
'' is present,
S_0
is executed. If none of the expressions evaluates to TRUE
and ``ELSE S_0
'' is absent, the statement is a no-op (except for any
side-effects of the B
's).