mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2003
Posts: 12
K
kokoko Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Feb 2003
Posts: 12
i know this might sound strange, but basicly, i would like to know if it is possible to have variable indentifier names, eg, $a return blarg, and $($a) calls $blarg ?
would it also be possible to do it with variables along the line %a has the value blarg, and something along the line of %(%a) that would return the value of %blarg ?

-k-

Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
If I got what you want correctly, try this:

if $a = hello then $+($,$a) == $hello

Hope this helps,

Zyzzy smile


"All we are saying is give peace a chance" -- John Lennon
Joined: Feb 2003
Posts: 12
K
kokoko Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Feb 2003
Posts: 12
i have these two alias defined (for testing purposes)

temp4 return lalala
lalala return yeah baby

if i type //echo -a -- $+($,$temp4) i would like it to return -- yeah baby , but it returns -- $lalala

any ideas?

Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
$eval($ $+ $temp4,2)

Type /help $eval for more


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Joined: Feb 2003
Posts: 12
K
kokoko Offline OP
Pikka bird
OP Offline
Pikka bird
K
Joined: Feb 2003
Posts: 12
thats exactly what i was looking for, thanks a lot laugh


Link Copied to Clipboard