Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Anchor
1088978
1088978
The syntax of the while statement is:

Panel
while expression
...
end


Anchor
1088982
1088982
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.

...

Anchor
1088984
1088984
For example:

Panel
set n=1
while <$(n) LE 10>
    echo $(n)
set n=<$(n) + 1>
end