HiLMAs reference
Back

Control Instructions

Next

WHILE

   WHILE (var1,comp1,var2),op,(var3,comp2,var4)... [DO]

 

Description

This is the loop While/Do:
the instructions between WHILE and ENDWHILE are repeated until the condition specified is True; the conditions are specified in the same manner as IF instruction. DO is a comment.

 


ENDWHILE

Description

Terminate the While control block: control retun to WHILE statement and conditions are newly evaluated: if True, block is newly executed otherwise control pass to statement next to ENDWHILE. In a program (or subroutine) every While must be closed by an EndWhile.

 

Examples

 


Back Start Next
ITERATEF / LEAVEF Top ITERATEW / LEAVEW