The EGL keyword while marks
the start of a loop
that runs as long as a specified logical expression resolves to true.
The
keyword end marks the close of the while statement.
Syntax
label
A label, followed
by a colon, which a continue or exit statement
can reference. For more information, see Conditional and loop statements.
logical expression
An expression (a series of operands and operators) that evaluates
to TRUE
or FALSE.
statement
An EGL statement.
Example
while (index < 7)
myRec[index].airport="Airport" + index;
myRec[index].city="City" + index;
myRec[index].state="S" + index;
index = index + 1;
end