mIRC Home    About    Download    Register    News    Help

Print Thread
#7961 23/01/03 11:40 AM
Joined: Dec 2002
Posts: 4
A
armando Offline OP
Self-satisified door
OP Offline
Self-satisified door
A
Joined: Dec 2002
Posts: 4
hi
i need some help with some variables
what can i do to concatenate some variables?
%var1 = one
%var2 = two

i want %vartot to return the value from %var1 and %var2 together (onetwo)
i cant find the way confused

#7962 23/01/03 11:47 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
set %vartot $+(%var1,%var2)

#7963 23/01/03 11:53 AM
Joined: Dec 2002
Posts: 4
A
armando Offline OP
Self-satisified door
OP Offline
Self-satisified door
A
Joined: Dec 2002
Posts: 4
thanks, you were really quick
but.. i had tried that and it doesnt work
it will only return %var2
i dont know why
anyother idea?
thanks

#7964 23/01/03 11:59 AM
Joined: Jan 2003
Posts: 94
S
Babel fish
Offline
Babel fish
S
Joined: Jan 2003
Posts: 94
well the code works, it would only return %var2 if %var1 didnt have a value, here try this out:

Code:
alias blah! {
var %var1 = Sab
var %var2 = by's E
var %var3 = xample
var %var4 = $+(%var1,%var2,%var3)
echo -a %var4
}

just type /blah! and it will echo the example


-
E-Mail: mirc_sabby@hotmail.com
Network: irc.enterthegame.com
Channel: #Helpdesk
#7965 23/01/03 01:38 PM
Joined: Dec 2002
Posts: 4
A
armando Offline OP
Self-satisified door
OP Offline
Self-satisified door
A
Joined: Dec 2002
Posts: 4
lol
sorry, i was doing something wrong.. stupid actually
thanks for your help
mirc forum rules


Link Copied to Clipboard