Do - While

You can test the condition either at the top or the bottom of the loop.
This should be used in situations where the loop will be terminated when a logical condition applied.


This is executed at least once because the condition is at the bottom.

Do 
   statements
Loop While boolean-expression

Do While boolean-expression 
   statements
Loop

Nested Do - While

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.



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