mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Aug 2005
Posts: 31
D
Div Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Aug 2005
Posts: 31
Code:
alias ttt {
  var %a = oioi
  var %b = welcome
  var %c = hello
  var %order = a b c
  echo -a check: [ % $+ $gettok(%order,1,32) ]
}


Can someone get this to work pls?
I want something like this cause for me it matters in what order %order is set to.

Thanks alot in advance!

Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
echo -a check: % [ $+ [ $gettok(%order,1,32) ] ]
or
echo -a check: $eval(% $+ $gettok(%order,1,32),2)


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

What about b and c ?

echo -a check: $eval($+(%,$replace(%order,$chr(32),$+($chr(32),%))),2)

~ Edit ~

Removed $gettok()


Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Div's code looks like a test case, where 1 was used instead of a counter in $gettok() (ie it looks like he just wants to know how to evaluate dynamic variables). He'll have to be more specific if he wants something else in addition.

Edit: like what you posted smile

Last edited by qwerty; 15/11/07 01:27 PM.

/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com

Link Copied to Clipboard