Introduces a set of alternative statements in a “multiple-selection” control structure.
No options or parameters
A multiple-selection control structure consists of several alternative blocks of statements. The first of these is introduced by a
CASE statement. This has a single parameter, which is an expression that must yield a single number. Subsequent blocks are each introduced by an
OR statement. There can then be a final block, introduced by an
ELSE statement, as in the block-if structure. The whole structure is terminated by an
ENDCASE statement. Full details are given in the description of the
Commands for: Program control.