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
Jun 9, 2000)
Copyright © 1998 Mill Hill & Canterbury
Corporation, Ltd. All rights reserved
Please send any comments or corrections to
mhc@webcom.com