[Contents]
[Prev] [Next] [Limbo Basics] [Limbo Programming] [Language Definition]

Simple Looping Statements

The simple looping statements are:

labelopt while (expressionopt) statement
labelopt do statement while (expressionopt) ;

In both cases the expression must be of type int. In the first form, the expression is first tested against 0; while it is not equal to 0, the statement is repeatedly executed. In the second form, the statement is executed, and then, while the expression is not 0, the statement is repeatedly executed. If the expression is missing, it is understood to be non-zero.



[Contents]
[Prev] [Next] [Limbo Basics] [Limbo Programming] [Language Definition]

Copyright © 1998, Lucent Technologies, Inc. All rights reserved.