REPEAT statement
Repeat
[ statements ]
[ Break ]
[ statements ]
Until condition
Repeats a series of statements UNTIL the condition becomes TRUE.
The Break statement exits the loop in whose loop body the statement is executed.
Example:
Dim $i = 0
Dim $s = "text"
While $i <= 10
If $s <> "" Then
$s = $s + ","
End If
$s = $s + $i
'terminate loop if the length of $s is larger than 10
If Len($s) > 10 Then
Break
End If
$i = $i + 1
End While