Previous Topic: ERROR Function--Write Error Message to Console Log

Next Topic: EXISTS Function--Look Up File Name

EVALUATE Function--Evaluate an Expression

The EVALUATE function evaluates an expression in the context of the current user and returns the result as a string. If an optional user path is provided, the function evaluates the expression in the context of the specified user.

Syntax

The EVALUATE function has the following format:

EVALUATE([user_path, ]expression)

Parameters

The EVALUATE function accepts the following parameters:

user_path (string)

(Optional) Specifies a user other than the current user.

expression (string)

Specifies the expression to be evaluated.

Return Value

The EVALUATE function returns a string.

Remarks

Privileged: Yes

Example

Return_value=EVALUATE("sn + ',' + givenname")
Return_value="Hood, Robin"

Return_value=EVALUATE(manager, "sn + ',' + givenname")
Return_value="Webb, Charlotte"


Copyright © 2010 CA. All rights reserved. Email CA about this topic