WHILE
The WHILE statement repeats a block of instructions while the test condition evaluates to TRUE.
The following is a definition of the statement.
WHILE the test condition
DO
<Template scripting part with declarations>
OD
#BEGIN
NUMBER counter := 3
WHILE counter > 0
DO
#
The counter is @(number(counter;0))
#
ASSIGN counter := counter – 1
OD
END#
Result:
The counter is 3
The counter is 2
The counter is 1