Here's an example, made in clear mirc:
alias test {
$iif(%test == $null,%test = test)
echo -a %test
}
alias test2 {
$iif(%test2 == $null,set %test2 test2)
echo -a %test2
}
alias test3 {
if (%test3 == $null) %test3 = test3
echo -a %test3
}
alias test4 {
if (%test4 == $null) set %test4 test4
echo -a %test4
}
When i perform
/test, appears an error:
* /=: not connected to server (line 2, remote.ini)
When i perform
/test2:
* /set: invalid parameters (line 6, remote.ini)
When i perform
/test3 și
/test4 all works!
So, is a bug with $iif() that not evaluate the commands in it? I used mirc version 7.64 till this new version 7.71 and $iif(%test == $null,%test = test) works fine!