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