Difference between revisions of "(global)"
| Line 51: | Line 51: | ||
| [[tostring]] ''convert to string, returns string''<br/><!--GIDEROSMTD:tostring(e) convert to string, returns string--> | [[tostring]] ''convert to string, returns string''<br/><!--GIDEROSMTD:tostring(e) convert to string, returns string--> | ||
| [[type]] ''returns type of v as a string''<br/><!--GIDEROSMTD:type(v) returns type of v as a string--> | [[type]] ''returns type of v as a string''<br/><!--GIDEROSMTD:type(v) returns type of v as a string--> | ||
| + | [[typeof]] ''returns type of v as a string''<br/><!--GIDEROSMTD:typeof(v) returns type of v as a string--> | ||
| [[unpack]] ''returns all elements from list''<br/><!--GIDEROSMTD:unpack(list) returns all elements from list--> | [[unpack]] ''returns all elements from list''<br/><!--GIDEROSMTD:unpack(list) returns all elements from list--> | ||
| [[vector]] ''vector with up to 3 values''<br/><!--GIDEROSMTD:vector(x,y[,z]) vector with up to 3 values--> | [[vector]] ''vector with up to 3 values''<br/><!--GIDEROSMTD:vector(x,y[,z]) vector with up to 3 values--> | ||
Revision as of 16:27, 2 February 2025
Supported platforms: 



Available since: Gideros 2011.6
Description
Global scope of Lua environment.
Example
Prints all current global variables:
local function globalVariable()
	for k,v in pairs(_G) do
		print(k,v)
	end
end
 
globalVariable()
| Methodsassert error if v nil or false, otherwise returns v | EventsConstants | 
