mIRC Home    About    Download    Register    News    Help

Topic Options
#17012 - 26/03/03 09:45 PM $+ and $iif
praetorian_ Offline
Ameglian cow

Registered: 22/02/03
Posts: 32
i believe i have found a bug in $+ when an $iif statement is preceded by a null variable. example (make sure %test is unset or choose a different variable name):

//echo -a $+(%test,$iif(testing,test))

echos '$nulltest'. it doesnt matter how many parameters you pass to $+, nor does the position of the null variable\$iif combo in the list (i.e. $+(one,two,three,%var,$iif) breaks, as does $+(one,%test,two,$iif)).

one could argue that this is working correctly because %test is actually $null, but this is not true because the same statement switched around (or even with the $iif removed) excludes the $null.

i reproduced this bug on both mIRC 6.3 and 5.91

#17013 - 26/03/03 10:46 PM Re: $+ and $iif
qwerty Offline
Hoopy frood

Registered: 07/01/03
Posts: 2523
It's definitely a bug. Looks like mirc never got over the $null-considered-a-literal-string problem completely...

Btw, $+() has other quirks too, like //echo -s $+($+,a)
/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com

#17014 - 05/06/03 04:00 AM Re: $+ and $iif
Ic3flamez Offline
Ameglian cow

Registered: 05/06/03
Posts: 20
blah.. why am i even bothering to answer this?
Get into the Flamez