IF/THEH/ELSE
Purpose
The IF instruction conditionally branches the program
control.
Font
IF<expression>THEH<statment >{ s statement >} | <line
number>[ELSE <stateaent>{:<stateoent>} <line number>]
or
IF <expreaaion>GOTO<line number>[ELSE
<statement>{: statement >} |<line number>]
Description
(1) <expression> indicates branch condition; if
<expression> is true (other than 0), THEN or GOTO
statements are executed while if it is false (0), ELSE
statements are executed.
If ELSE statements are omit
ted and the <expression> is false, control is trans
ferred to the next line.
If the <expression> is true
and no branch instruction is written in the THEN
statement, control is transferred to the next line
after executing the THEN statement.
(2) IF statement can be written in THEN or ELSE state
ment. (IF can be nested.
Although the nesting level is
not limltted, it must be 255 characters or less in
total.)
3-53