mIRC Home    About    Download    Register    News    Help

Print Thread
$+ and $iif #17012 26/03/03 09:45 PM
Joined: Feb 2003
Posts: 32
P
praetorian_ Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Feb 2003
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):

Code:
//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

Re: $+ and $iif #17013 26/03/03 10:46 PM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
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
Re: $+ and $iif #17014 05/06/03 03:00 AM
Joined: Jun 2003
Posts: 20
I
Ic3flamez Offline
Ameglian cow
Offline
Ameglian cow
I
Joined: Jun 2003
Posts: 20
$+(",blah",)
blah.. why am i even bothering to answer this?


Get into the Flamez