mIRC Home    About    Download    Register    News    Help

Print Thread
evaluating variable problem #42337 17/08/03 10:18 AM
Joined: Jan 2003
Posts: 127
L
littlecramp Offline OP
Vogon poet
OP Offline
Vogon poet
L
Joined: Jan 2003
Posts: 127
alias cvn { { return  $+ $2 $+ $1 $+  }
E.g if %c = 2
echo Found $cvn(%c,12) entry
should return
Found 2 entry
with the '2' in color

However, it give
Found entry

Even if i use echo Found $cvn($eval(%c,2),12) entry,it still produce the same result

What is wrong?

Re: evaluating variable problem #42338 17/08/03 10:32 AM
Joined: Jan 2003
Posts: 150
J
J0ke Offline
Vogon poet
Offline
Vogon poet
J
Joined: Jan 2003
Posts: 150
what about:

Code:
alias cvn {
  return $+(,,$2,,$1,)
} 
 


smirk


Go ahead, jump. 100,000 lemmings can't be wrong.
Re: evaluating variable problem #42339 17/08/03 12:30 PM
Joined: Jan 2003
Posts: 127
L
littlecramp Offline OP
Vogon poet
OP Offline
Vogon poet
L
Joined: Jan 2003
Posts: 127
alias cvn { return $+(,,$2,,$1,)}
is the control code b/w $2 and $1control-B ? If yes can u explain why

Re: evaluating variable problem #42340 17/08/03 05:46 PM
Joined: Mar 2003
Posts: 437
M
MTech Offline
Fjord artisan
Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
Code:
alias cvn { return $+(,,$2,,$1,) }
u need to space at the end of that here^

and its color, bold, color color

Last edited by MTech; 17/08/03 05:48 PM.
Re: evaluating variable problem #42341 18/08/03 08:38 AM
Joined: Dec 2002
Posts: 1,321
H
Hammer Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
alias cvn return $+(,$base($2,10,10,2),$1,)


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C