mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2004
Posts: 2
S
Bowl of petunias
OP Offline
Bowl of petunias
S
Joined: May 2004
Posts: 2
it's a bug in 6.14, i didn't check previous versions.

example:
alias test {
var %num = 1
while (%num <= 3) {
if ($false) inc %num
else { echo -a break | break }
}
}

now, in that alias at some point it breaks. but if i put several of those lines on the same line:

alias test {
var %num = 1
while (%num <= 3) { if ($false) inc %num | else { echo -a break | break } }
}

that goes into the else, displays the "break" echo, but doesn't break.

sorry to have wasted your time if it's a known issue.

Joined: Apr 2004
Posts: 871
Sat Offline
Hoopy frood
Offline
Hoopy frood
Joined: Apr 2004
Posts: 871
Indeed, /break doesn't work if it's on the same line as the /while it's supposed to break out of, you can reproduce it with code as simple as:

Code:
while ($true) { break }

I bet it's somehow related to the nested while problem reported quite a while ago.


Saturn, QuakeNet staff
Joined: Dec 2002
Posts: 329
Fjord artisan
Offline
Fjord artisan
Joined: Dec 2002
Posts: 329
This has been fixed in mIRC 6.15
63.Fixed /while loop handling bug when /break on same line.
(Note that this does not solve the issue with multiple /whiles on one line.)


Link Copied to Clipboard