There seems to be a bug in the reference of which loop to re-start when continue is used a second time in this code
Instead of jumping to the first while loop it goes to the second one when /continue is hit the second time.
Example Code:
alias test {
var %0 = 9,%1 = 0
while (%1 < %0) {
inc %1
echo == 1 ==
if ($calc(%1 /2) != $int($calc(%1 /2))) { echo CONT | continue }
echo == 2 ==
var %2 = 5,%3 = 0
while (%3 < %2) {
inc %3
echo == 3 ==
}
echo == 4 ==
}
}
You get
== 1 ==
CONT
== 1 ==
== 2 ==
== 3 ==
== 3 ==
== 3 ==
== 3 ==
== 3 ==
== 4 ==
== 1 ==
CONT
== 4 ==
== 1 ==
== 2 ==
== 3 ==
== 3 ==
== 3 ==
== 3 ==
== 3 ==
== 4 ==
== 1 ==
CONT
== 4 ==
== 1 ==
== 2 ==
== 3 ==
== 3 ==
== 3 ==
== 3 ==
== 3 ==
== 4 ==
== 1 ==
CONT
== 4 ==
....
(Bug submitted on my scripting website by McFly which isn't good in english, so I posted it for him so Khaled may see it)