setglobal()

From Warcraft Wiki
Jump to navigation Jump to search
This function is implemented in FrameXML/UIParent.lua.

Sets the value of a named global variable. Deprecated, use the global table _G instead:

setglobal(globalKey, newValue)
_G[globalKey] = newValue

Arguments

globalName
Any - "Name" of the global you want to change.
newValue
Any - Value you want to set the global to.