TAL Reference Manual
Statements
TAL Reference Manual—526371-001
12-11
CASE Statement
4. This example omits all parameters:
CALL extensible_proc ( );
5. These examples omit some optional parameters:
CALL variable_proc( , , , , , x);
CALL variable_proc (n, , char, , , eof);
CALL variable_proc (n, !name!, char, !type!, !size!, eof);
CASE Statement
The CASE statement executes a choice of statements based on a selector value.
Normally, you use labeled CASE statements. Labeled CASE statements are described
first, followed by unlabeled CASE statements.
Labeled CASE Statement
The labeled CASE statement executes a choice of statements when the value of the
selector matches a case label associated with those statements.
selector
is an INT arithmetic expression that uniquely selects the case-alternative for the
program to execute.
case-alternative
associates one or more case-labels or one or more ranges of case-labels with one
or more
statements. The statements of a case-alternative are executed if selector
equals an associated
case-label.
;
CASE
selector OF BEGIN case-alternative
END
OTHERWISE -> ;
statement
VST1207.vsd