Loops
while boolean-expression do looping-statement
while
loop is very similar to while
loops in other languages:
e := q:Entry(); while e do e := q:Next();The
while
loop evaluates its boolean expression at the top of the loop. If the expression is non-nil
, it evaluates the looping statement and then returns to the top of the loop. If the expression is nil
, it skips to the next statement. The looping statement may be executed zero or more times.
An online version of Programming for the Newton using Macintosh, 2nd ed. ©1996, 1994, Julie McKeehan and Neil Rhodes.
Last modified: 1 DEC 1996