Nested while loops bug - 19/05/08 06:58 PM
Apologies if this has been pointed out before, I'd be very surprised if it hasn't been, but I wasn't able to find it with a forum search.
The bug is with nested while loops on the same line of code. The following script fails when executed on a single line (terminates after the first iteration), but succeeds when spread out onto multiple lines:
Fails, whereas:
works as expected.
mIRC Version: 6.31
The bug is with nested while loops on the same line of code. The following script fails when executed on a single line (terminates after the first iteration), but succeeds when spread out onto multiple lines:
Code:
alias test var %s 3 | while (%s) { var %a 3 | while (%a) { dec -s %a } | dec -s %s }
Fails, whereas:
Code:
test2 { var %s 3 while (%s) { var %a 3 while (%a) { dec -s %a } dec -s %s } }
works as expected.
mIRC Version: 6.31