Difference between revisions of "(global)"
m |
m |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
<!-- GIDEROSOBJ:(global) --> | <!-- GIDEROSOBJ:(global) --> | ||
− | '''Supported platforms:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]]<br/> | + | '''Supported platforms:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]][[File:Platform linux.png]]<br/> |
'''Available since:''' Gideros 2011.6<br/> | '''Available since:''' Gideros 2011.6<br/> | ||
Latest revision as of 18:43, 21 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()
Reference
https://github.com/gideros/luau/blob/master/VM/src/lbaselib.cpp
https://create.roblox.com/docs/reference/engine/globals/LuaGlobals
Methodsassert error if v nil or false, otherwise returns v |
EventsConstants |