Do - Until

You can test the condition either at the top or the bottom of the loop.
This is executed at least once because the condition is at the bottom.


Condition At The Top

This might not be executed because the condition is at the top.
This loops until the variable is equal to the value 5 (four times).


Condition At The Bottom

This is executed at least once because the condition is at the bottom.
This loops until the variable is equal to the value 5 (four times).


Nested Do - Until

When used within nested loops Exit Do transfers control to the loop that is one nested level above the loop where the Exit Do occurs.


Exit Do

The Exit Do statement lets you exit the loop early.


© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited TopPrevNext