HiLMAs reference
Back

Control Instructions

Next

SELECT

   SELECT

 

Description

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

WHEN (var1,comp1,var2),op,(var3,comp2,var4)...

Description

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.

 

 


OTHERW

Description

OTHERW is optional in the SELECT control block: if it is specified, its statements are executed if all When conditions aren't True.

 


ENDSEL

Description

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.

 

Examples

 


Back Start Next
ITERATER / LEAVER Top BREAK / NOBREAK