While statement (LotusScript® Language)

Executes a block of statements repeatedly while a given condition is true.

Syntax

While condition

[ statements ]

Wend

Elements

condition

Any numeric expression. LotusScript® interprets a value of 0 as FALSE, and interprets any other value as TRUE.

Usage

LotusScript® tests condition before entering the loop and before each subsequent repetition. The loop repeats while condition is TRUE. When condition is FALSE, execution continues with the first statement following the Wend statement.

Example