Do~Loop While

The execution of the statements between Do and Loop are repeated as long as the conditions continue to be fulfilled.

Do <Do statement within the block>
Loop While <Logical Expression>

Parameters
<Logical Expression>
The logical expression (Boolean expression) for controlling processing.
<Do statement within the block>
Statement to be repeatedly executed (statement).

Return Value
None.

Description
While the <Logical Expression> is true (not 0), the <Do statement within the block> is repeatedly executed.Refer to refCalculation - Macro Program Rules for details on logical expressions and Boolean values.
The Exit Do command is used to forcefully exit the Do - Loop While command.
Control is moved from outside the Do block to within using the Goto command, etc. Moving control from inside the block to outside it cannot be done.

Example
    NUM&=0 

    Do
    NUM&=NUM&+1
    Loop While NUM&<100
    Print NUM&
The result is as follows:
100