If B_n is the first in the sequence of B_i's to evaluate to TRUE,
then C_n is executed. If none of the B_i's evaluates to TRUE, nothing
is done. The construct, 'Elsif B Then C' can be repeated any number
of times. Note: be careful not to type 'Elseif' by mistake (it has an
extraneous 'e').
In the last form, the single command D is performed if B evaluates to
TRUE. NOTE: the use of this form is discouraged. It will probably
disappear from future versions of CoCoA.
For a conditional "expression", assignable to a variable, see
'Cond'.
|