while
while test command
Runs the command while the test, an expr expression, is true. Put the test in braces, so that it is read again on each pass. The result is an empty string.
Examples
A click on an example runs it in the shell of the page.
set i 0; while {$i < 3} {incr i}; set i:3
Facts
- Capability: none.
- Compute cost: one compute unit for the call, and more for the commands that it runs.