CASE |
Top Previous Next |
CASE statements are used for conditional execution of code in VPL programs.
CASE <expression> OF
<expr> is an expression that evaluates to a number. If one of the <num> values has the same value as <expr>, that section of code will be executed. If none of the <num> values match the <expr> value, the statements after the ELSE word are executed, and if no ELSE statement is found, the code after the END_CASE word will be executed. The <expression> is limited to variables of SINT and INT types.
Example: INCLUDE rtcu.inc |