# Keyword Reference

Do...Until

Loop based on an expression.

Do
statements
...
Until <expression>

Parameters

expression | The statements in between Do and Until are executed until the expression is true.

Remarks

Do...Until statements may be nested.
The expression is tested after the loop is executed, so the loop will be executed one or more times.

Related

ContinueLoop, ExitLoop, While...WEnd, For...Next

Example

$i = 0
Do
MsgBox(0, "Value of $i is:", $i)
$i = $i + 1
Until $i = 10