Syntax |
While condition |
Description |
Repeats a statement or group of statements while a condition is True. |
Comments |
The condition is initially and then checked at the top of each iteration through the loop. |
Example |
This example executes a While loop until the random number generator returns a value of 1. Sub Main() x% = 0 |
See Also |
Do...Loop (statement); For...Next (statement). |
Note: |
Due to errors in program logic, you can inadvertently create infinite loops in your code. You can break out of infinite loops using Ctrl+Break. |
W |