Last Modified: 1/2/2021
Creates a loop that ends when a condition is met or the Exit command is used.
Name | Type | Required | Description |
Condition | Expression | No | Required when using While or Until. |
Syntax: Do [While <Condition>] [Statements] [Continue] [Statements] Loop [Until | While <Condition>] |
Do x++ Print x Loop Until x = 5 |
If you want to loop your code a specific number of times, consider using a For...Next loop instead.