mIRC Home    About    Download    Register    News    Help

Print Thread
#158603 06/09/06 10:22 PM
Joined: Jul 2004
Posts: 150
D
Debug Offline OP
Vogon poet
OP Offline
Vogon poet
D
Joined: Jul 2004
Posts: 150
Hi,

How can I add something to a var %test without losing the old values?

I have %test = soccer,football,volley,basket and i wanna put 2 more sports inside without removing all, how can i do this? I didnt saw nothing about this in /set.

Thanks.

#158604 06/09/06 10:23 PM
Joined: Apr 2006
Posts: 464
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
Something like :

var %test = %test $+ ,hockey,cricket,midgetgolf,bowling

#158605 06/09/06 10:47 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Assuming you want to have each sport separated by a comma, you can use the token identifiers.

For example:
Code:
%test = $addtok(%test,rugby,44)


Type /help Token Identifiers in mIRC to see a full list of token identifiers and how they work.


Spelling mistakes, grammatical errors, and stupid comments are intentional.

Link Copied to Clipboard