mIRC Home    About    Download    Register    News    Help

Print Thread
#62713 03/12/03 10:05 AM
Joined: Sep 2003
Posts: 156
B
bleach Offline OP
Vogon poet
OP Offline
Vogon poet
B
Joined: Sep 2003
Posts: 156
.

#62714 03/12/03 10:08 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Evaluates things, e.g.

//var %t = hello | echo -a % $+ t
//var %t = hello | echo -a $eval(% $+ t)
//var %t = hello | echo -a $eval(% $+ t,2)

#62715 03/12/03 10:11 AM
Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
Code:
$eval(text,N)

Evaluates the contents of text N times. If N isn't specified, the default is N = 1. If N is zero, text is not evaluated.

This allows you to recursively evaluate identifiers and variables in a line of text.


read the helpfile (/help $eval or F1)

sample:

/set %network $network
//echo -a %network
this gives "$network"
//echo -a $eval(%network,2)
this gives "YOUR_$NETWORKNAME_HERE"
//echo -a $eval(%network,0)
this gives "%network"
//echo -a $eval(%network,1)
this is default and gives "$network"


If it ain't broken, don't fix it!
#62716 03/12/03 06:02 PM
Joined: Sep 2003
Posts: 156
B
bleach Offline OP
Vogon poet
OP Offline
Vogon poet
B
Joined: Sep 2003
Posts: 156
thanks


Link Copied to Clipboard