...
The syntax of the
while statement is:
Panel |
---|
Html bobswift |
---|
<pre>
while expression
...
end
</pre>
|
|
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.
...
For example:
Panel |
---|
Html bobswift |
---|
<pre>
set n=1
while <$(n) LE 10>
echo $(n)
set n=<$(n) + 1>
end
</pre>
|
|