DO / WHILE / UNTIL

DO {WHILE or UNTIL condition}

     <statements>

     {if <condition> REPEAT}

     {if <condition> EXIT}

     {<statements>}

LOOP {WHILE or UNTIL condition}

 

For example:

DO WHILE A > B

    A = A + 1

    B = B * 2

LOOP

 

Another example:

DO

    A = A + 1

LOOP UNTIL A = 10

 

Compatibility: BASIC Plus at the source level; requires /X:1 or higher.