mIRC Home    About    Download    Register    News    Help

Print Thread
#221543 24/05/10 04:12 AM
Joined: Jul 2006
Posts: 4,193
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,193
Exemple are better than an explanation :

//echo -a $?"this is a bug" $?!"\o/"
vs
//echo -a $?"nobughere" $?!"\o/"

The space seems to be the problem

Last edited by Wims; 24/05/10 04:14 AM.

#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Dec 2002
Posts: 5,503
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,503
The $? identifier has always been a bit quirky :-) It has worked that way ever since it was added, so it's not something I can change since it might break scripts. The $? identifier was replaced with $input() to overcome these issues. Alternatively you can enclose $?="" in $() to control the evaluation order.


Link Copied to Clipboard