The examples of IF…THEN…ELSE instructions in previous chapters demonstrate the two-choice selection. In a flow chart, this appears as follows:
IF expression THEN instruction
ELSE instruction
IF expression THEN
instruction
ELSE
instruction
or
IF expression
THEN
instruction
ELSE
instruction
IF expression THEN instruction; ELSE instruction
IF expression THEN
instruction
ELSE NOP
IF weather = rainy THEN
SAY 'Find a good book.'
ELSE
DO
PULL playgolf /* Gets data from input stream */
If playgolf='YES' THEN SAY 'Fore!'
END
Without the enclosing DO and END, the language processor assumes only one instruction for the ELSE clause.