alias whiletest {
var %i = 1
while (%i < 20) {
echo -a %i
inc %i
}
echo -a 20 reached
}
In the example above, as long as %i is less than 20 the
script will keep looping, once 20 is reached the loop breaks
and continues with the rest of the script. As you can see,
the value of %i is increased with each loop.