Returns the value of a user variable with the specified name associated with the specified scope.

Parameters:

scope

The scope (context) with which the variable is associated. (See "About User Variables" below.)

If this parameter is not specified, the global scope is assumed by default.

name
Specify the variable name.

If in the given scope, there is no variable with such a name, the generator will raise an error. Use checkVar() function to determine whether the variable with the given name exists.

Returns:

The variable value.

See Also:

setVar(), checkVar()

${include ../../refs/user_vars.htm}