Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

while Statement

The while statement implements a simple while loop.

Syntax

The syntax of the while statement is:


In this case, the loop iterates (executing the commands between the while and end statements) as long as the expression evaluates to a value that is not zero.

If the expression evaluates to a value of zero, code execution picks up at the point immediately following the end of the while loop.

Example

For example:

  • No labels