mIRC Homepage
Posted By: dvdscripter Bug or parser? if-then-else $ifmatch - 03/07/08 06:11 AM
/alias tt if ( a != b && c != d ) echo -a $ifmatch
/tt
return 'a'
/alias tt if ( a != b && c != d ) { echo -a $ifmatch }
return 'c'

Why? v6.32
Posted By: RusselB Re: Bug or parser? if-then-else $ifmatch - 03/07/08 06:20 AM
hmm.. interesting find, and since the two codes are almost identical, the difference being the extra braces, to my thinking they both should've returned the same thing.

This might be better located in the bug reports section, as that's what it looks like to me.
Posted By: dvdscripter Re: Bug or parser? if-then-else $ifmatch - 03/07/08 06:27 AM
Hm you are right it can be a bug smirk
Posted By: Typos Re: Bug or parser? if-then-else $ifmatch - 03/07/08 01:16 PM
I tried the first thing that came to mind and also found that...
/alias tt if (a != b) && (c != d ) echo -a $ifmatch
Also returns c .
Very interesting find.
Btw, Im still running 6.3 so this isnt specific to 6.32
Posted By: RoCk Re: Bug or parser? if-then-else $ifmatch - 03/07/08 02:19 PM

When formatted correctly, it returned c for me also in 6.32.
Posted By: dvdscripter Re: Bug or parser? if-then-else $ifmatch - 03/07/08 03:30 PM
tt if a != b && c != d { echo -a $ifmatch }
return 'c'
tt if a != b && c != d echo -a $ifmatch
return 'a'

I think is only occur when an alias use "too few" brackets.
Exist a method to get the first $ifmatch/$v1 of different comparison?
© mIRC Discussion Forums