Contents | Prev | Next | Index
The purpose of a while statement is to perform a repeated execution of a statement while a boolean expression yields TRUE. This boolean expression is checked before every execution of the statement sequence.
while_stmt ::= WHILE boolean_expr DO stmt |
Examples:
WHILE i>0 DO BEGIN
i := i DIV 2;
k := k+1
END;WHILE (t <> NIL) AND (t^.key <> i) DO
t := t^.left;
Contents | Prev | Next | Index
Canterbury Pascal for JVM (Last documentation update
Sep 02, 2004)
Copyright © 1999-2004 J.Neuhoff - mhccorp.com
. All rights reserved.
Please send any comments or corrections to
neuhoff@mhccorp.com