7 31 DOWHILE

LANSA Technical

7.31 DOWHILE

The DOWHILE command is used to create a conditional loop and to continue looping whilst the condition is true. The end of the loop is "delimited" by the associated ENDWHILE command.

Note: The DOUNTIL command is similar in structure to the DOWHILE command. However, in the DOUNTIL command, the condition is not checked BEFORE doing the first iteration.

Refer to the ENDWHILE command for more information and examples of both of these commands.

Also See

7.31.1 DOWHILE Parameters

7.31.2 DOWHILE Examples

7.3 BEGIN_LOOP

7.30 DOUNTIL

7.33 END_LOOP

7.40 ENDUNTIL

7.41 ENDWHILE

                                                         Required

 

  DOWHILE ------ COND -------- 'condition' ---------------------|