API:getglobal

Returns the variable from the global environment.

Arguments

 * varName
 * string - The name of the global variable to get.

Returns

 * var
 * any - The returned variable.

Example
Exactly the same as (this alternative is faster as it saves a functioncall):

Related Functions

 * setfenv
 * getfenv