Using the While statement

The iterative block statement While executes a block of statements repeatedly while a condition is true.

The syntax is:

While condition

statements

Wend

LotusScript® evaluates the condition of a While statement before each repetition of the statement body. As soon as the condition is false, control passes to the statement following Wend.

No statement outside the While statement body should transfer control into it, bypassing the evaluation of condition; the results are unpredictable.