Easiest is to use $eval( string , number of times to evaluate it ) ... like this:

Assume the following variables and their associated values:

%a = %b
%b = %c
%c = %d
%d = 27

Using $eval( ) to evaluate %a allows you to specify the depth of evaluation you want.

$eval([color:#600080]%a, 0)[/color] doesn't evaluate anything, it just returns what you gave it (useful in timers and in /scon -a commands), so it returns %a.

$eval([color:#600080]%a, 1)[/color] evaluates %a one time and returns its value: %b.

$eval([color:#600080]%a, 2)[/color] evaluates %a twice, thus it returns %b's value, which is %c.

$eval([color:#600080]%a, 3)[/color] likewise re-evaluates it again and returns %d.

$eval([color:#600080]%a, 4)[/color] finally returns 27, the end of the line "real" value for this example.


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