SELECT
This is the multi-branch condition Select/When:
there are one or more When conditions: if the condition is True, following statements are executed, otherwise successive When condition is tested.
OTHERW is optional: if it is specified, its statements are executed if all When conditions aren't True.
The conditions in WHEN statements are specified in the same manner as IF instruction.
WHEN (var1,comp1,var2),op,(var3,comp2,var4)...
The conditions in WHEN statements are tested if none of the preceding WHEN condition is verified or, if verified, a NOBREAK statement is encountered. If conditions of the WHEN statement are True, next statements up to next WHEN (or OTHERW or ENDSEL) are executed.
The conditions in WHEN statements are specified in the same manner as IF instruction.
Terminate the Select control block: control is retuned to the next statement. In a program (or subroutine) every Select must be closed by an EndSel.