While
Syntax:
While <Logical expression> Do
// Operators
[Break;]
// Operators
[Continue;]
// Operators
EndDo;
Parameters:
<Logical expression>
A logical
expression.
Do
Operators following the Do keyword are executed while
the result of the logical expression is True.
// Operators
One or several operators that are executed.
Break
Breaks the loop execution at any point. After this
operator is executed, the control is passed to the operator
following the EndDo keyword.
Continue
Passes the control immediately to the beginning of
the loop where the loop conditions are calculated and checked.
The operators following the Continue operator are
skipped in this iteration.
EndDo
A keyword that denotes the end of the loop operator
structure.
Description:
The loop operator While
is intended for repeated execution of the operators enclosed in Do ... EndDo keywords. The loop
is executed while the logical expression value is True.
The loop condition is always checked at the beginning, before the
loop is executed.