mIRC Homepage
Posted By: Attila if bug ? - 15/06/04 09:19 PM
maybe i have found a bug with $ifmatch beacause i have a
if (%a) .notice $nick $iif(%b,2,3) bla $ifmatch
and $ifmatch doesn't return %a or %b, he return nothings!
Posted By: DixrouE Re: if bug ? - 15/06/04 09:26 PM
because %b = $null I guess :P
Posted By: Attila Re: if bug ? - 15/06/04 09:29 PM
heuuu smile
Posted By: starbucks_mafia Re: if bug ? - 15/06/04 09:31 PM
It's working fine here. Are you sure that they're both have non-false values and %b doesn't contain only spaces?

When you say it doesn't return anything what do you mean? Remember you're using the . prefix there so you won't see the notice being sent.
Posted By: qwerty Re: if bug ? - 15/06/04 09:31 PM
Works fine here:
//var %a = A, %b = B | if (%a) echo -a $iif(%b,2,3) bla $ifmatch
echoes "2 bla B", which is correct: $ifmatch is filled by the first part of the condition in $iif(), which is %b.

If %b is $null, 0 or $false, $ifmatch is correctly set to $null, since the last condition was FALSE:
//var %a = A, %b = 0 | if (%a) echo -a $iif(%b,2,3) bla $ifmatch
© mIRC Discussion Forums