RAD function: evaluate

Evaluates an operator and may return a value.

Function

evaluate

Format

$e = evaluate($x)

Factors

  • An operator is created using the parse function.
  • The evaluate function is also valuable when the statement to be evaluated is contained in a Service Manager field that is not qualified once the application is compiled.
  • The parse flag is used to parse data in a form, which in turn converts the data to an operator (data type 10).
  • Although an lvalue is always required, a value is not always assigned to the lvalue.

Example

$x=parse(“1+1”,1) returns two (2).

$x=evaluate($x)