7 30 DOUNTIL

LANSA Technical

7.30 DOUNTIL

The DOUNTIL command is used to create a conditional loop and to continue looping until the condition is true. The DOUNTIL command loop is "delimited" by the associated ENDUNTIL command which must be present.

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

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

Also See

7.30.1 DOUNTIL Parameters

7.30.2 DOUNTIL Examples

7.3 BEGIN_LOOP

7.33 END_LOOP

7.40 ENDUNTIL

7.31 DOWHILE

7.41 ENDWHILE

                                                         Required

 

  DOUNTIL ------ COND ---------'condition'----------------------|