while (<condition>) <command_block>
Execute a command or block of commands while a condition has a true value.
<condition>
A conditional phrase yielding a boolean value. Caret subsitution will be
performed only once on the first evaluation of this phrase, so to avoid
problems do not include string caret ^(...) expressions in this phrase.
<command_block>
One command or a block of commands to be continually executed as long
as <condition> is true.
None
Any non-zero numeric or point, or any non-null string is considered true when evaluating <condition>.
A jump to the end of the while loop block may be made with a continue command.
A break out of the while loop block may be made with a break command.
Execute one command in a while loop.
x = 1 while ( array[x] < 10 ) x = x + 1
Execute a command block in a while loop.
numeric x = 0 while ( x < 5 ) { x = x + 1 y = y * sqrt(x) }
Commands: |
|
Identifiers: |
cond_precision (numeric) |