Hi there,
How do you message a variable by using another variable...
%test_1 = test
%1 = 1
msg $chan %test_ $+ %1
Doesn't message %test_1
It's because mirc first evaluate %test_ ($null) then %1, and after stick them.Use $($+(%,test_,%1),2) for exemple
Thanks for the reply Wims. Can you explain what the code is doing there please, I'm learning lol. Also is that really the only way of doing it?
Thanks
Ninko
$+() stick the data, $+(a,b,c) will return abc.
Here, $+(%,test_,%1) will return %test_1 because each parameter are evaluate but since you don't want %test_1 but the value of it, you need to evaluate the whole thing another time, $(,2) (the same as $eval(,2)) do it.
Thank you Wims!
Take care
Ninko