Returns the value of a user variable with the specified name associated with the specified scope.
Parameters:
scope
If this parameter is not specified, the global scope is assumed by default.
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.
setVar(), checkVar()