/sys$common/syshlp/helplib.hlb PASCAL, Statements, WHILE *Conan The Librarian (sorry for the slow response - running on an old VAX) |
The WHILE statement is a loop that executes a statement while a specified condition is true. Syntax: WHILE expression DO statement The 'expression' is any Boolean expression. The 'statement' is any Compaq Pascal statement. Compaq Pascal checks the value of the Boolean expression before executing the loop body for the first time; if the expression is FALSE, the loop body is not executed. If the initial value is TRUE, loop iterations continue until the condition is FALSE. When specifying more than one statement as the loop body to a WHILE statement, enclose the statements with the BEGIN and END reserved words, since the syntax calls for a single statement to follow the DO reserved word. If you do not use a compound statement for the loop body, Compaq Pascal executes the first statement following the DO reserved word as the loop body.
Additional Information (explode) :
|