mIRC Home    About    Download    Register    News    Help

Print Thread
%varnames #159826 20/09/06 11:15 AM
Joined: Mar 2003
Posts: 58
A
Adler Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Mar 2003
Posts: 58
if ($+(%,echo.protection., [ $gettok($address($nick,2),2,64) ]) == $2-) { halt }
set -u30 $+(%,echo.protection., [ $gettok($address($nick,2),2,64) ]) $2-

why does my ifmatch not identify the condition with this variable?

My cmd with $+() working on set perfectly

Re: %varnames #159827 20/09/06 11:23 AM
Joined: Sep 2005
Posts: 2,876
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,876
To set the variable, $+() is fine, but to retrieve the value you need to evaluate it twice:
Code:
$eval($+(%,echo.protection.,$gettok($address($nick,2),2,64)),2)

Re: %varnames #159828 20/09/06 11:32 AM
Joined: Mar 2003
Posts: 58
A
Adler Offline OP
Babel fish
OP Offline
Babel fish
A
Joined: Mar 2003
Posts: 58
okay thanks, the good old mirc scripting time. I forgot the most in the last years frown