Control Structures
IF-THEN-ELSIF-ELSE
IF <condition> THEN
    <statements>
ELSIF <condition> THEN
    <statements>
ELSE
    <statements>
END_IF;
Conditional statement. The ELSIF-branch and ELSE-branch are optional. ELSIF can be repeated arbitrarily.
CASE OF
CASE <expression> OF
    <value>, <value>, …, <value>: <statements>
ELSE
    <statements>
END_CASE;
The case-list consists of a comma-separated sequence of values or ranges. Only the first matching case is executed. The optional ELSE-branch is executed if no case matches.
FOR
FOR <variable> := <expression> TO <expression> BY <expression> DO
    <statements>
END_FOR;
Iterates over the given variable in the defined range (including) using the supplied step-size. If the latter is omitted, it has 1 as default value.
WHILE
WHILE <condition> DO
    <statements>
END_WHILE;
Pre-checked loop.
REPEAT
REPEAT
    <statement>
UNTIL <condition>
END_REPEAT;
Post-checked loop. The break condition is evaluated after performing the <statements> the loop includes.
EXIT
EXIT;
EXIT can be used within loops to leave the loop. If loops are nested, only the innermost loop is left. If there is no loop surrounding the EXIT keyword, a compile-time error is issued.