Difference between revisions of "(global)"
m |
|||
| (One intermediate revision by the same user not shown) | |||
| 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/> | ||
| Line 20: | Line 20: | ||
=== Reference === | === Reference === | ||
| − | https://github.com/gideros/luau/blob/master/VM/src/lbaselib.cpp</br> | + | '''https://luau.org/library#global-functions'''<br/> |
| − | https://create.roblox.com/docs/reference/engine/globals/LuaGlobals | + | '''https://github.com/gideros/luau/blob/master/VM/src/lbaselib.cpp'''</br> |
| + | '''https://create.roblox.com/docs/reference/engine/globals/LuaGlobals''' | ||
{|- | {|- | ||
Latest revision as of 11:18, 21 July 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://luau.org/library#global-functions
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 |