JavaScript function: parse_evaluate()

Returns the value of a given expression.

Syntax

system.functions.parse_evaluate( exp , 10 );

Note The data is the character string to parse and the parse type is the numeric value normally passed into the parse function.

Example

If there is an $lo.username="Sys.Admin" expression in the useroptions table, this example returns the value of that expression.

    if (system.functions.parse_evaluate(expression in $l.file, 10 )) 
       userIsSysAdmin = true;

Note The expression works when the statement being evaluated and parsed contains thread or global variables. It does not work for local variables. However, you can transfer local variables to thread variables before calling the parse_evaluate expressions.