CASE instruction

With the CASE instructions one can combine several conditioned instructions with the same condition variable in one construct.
Syntax:

CASE <Var1> OF
<Value 1>:
    <instruction 1>
<Value 2>:
    <instruction 2>
    ...
<Value n>:
    <instruction n>
ELSE
    <ELSE-instruction>
END_CASE;

A CASE instruction is processed according to the following model:

Example:

CASE INT1 OF
1, 5:  
    BOOL1 := TRUE;
    BOOL3 := FALSE;
2:     
    BOOL2 := FALSE;
    BOOL3 := TRUE;
ELSE
    BOOL1 := NOT BOOL1;
    BOOL2 := BOOL1 OR BOOL2;
END_CASE;