1. Home
  2. OR directive

OR directive

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 CASE directive.

Options: none.

Parameters: none.

See also


Commands for: Program control.

Updated on March 6, 2019

Was this article helpful?