RAD functions: parse() and evaluate()

Returns the value of a given expression.

Syntax

evaluate(parse(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 expression $lo.username="Sys.Admin" in the useroptions table, this example returns the value of that expression.

    if (evaluate(parse(expression in $l.file, 10)))
       $userIs.Sys.Admin = 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 and evaluate expressions.