for
for start test next command
Runs start once, then the command and next while the test is true, as the for of C.
Examples
A click on an example runs it in the shell of the page.
set s 0; for {set i 1} {$i <= 4} {incr i} {incr s $i}; set s:10
Facts
- Capability: none.
- Compute cost: one compute unit for the call, and more for the commands that it runs.