Function_articles
![]() |
Use {{subst: :Help:API Function articles/Preload}} to import this boilerplate into a page.
|
One line summary description of the function.
isTrue, retVal1, retVal2 = {{subst:Help:API Function articles/Preload/Name}}(arg1, arg2 [, arg3])
Arguments
- arg1
- string - description.
- arg2
- number - description.
- arg3
- boolean? - description.
Returns
- isTrue
- boolean - true if the sky is blue, false otherwise.
- retVal1
- string - name of something or someone
- retVal2
- number[] - a table containing multiple IDs for something.
Details
- Triggers WHO_LIST_UPDATE, when your query has finished processing on the server and new "Who" information is available.
- Does something particularly detailed.
Example
The following snippet does something clever and insightful, using either tabs or four spaces to indent.
local a, b, c = func("hi", {1,2,3} )
if a > 20 and b < 20 and a^20 + b^20 = c^20 then
print("Stuff!")
end
Patch changes
Retail
Patch 8.1.5 / API changes (2019-03-12): Moved to
C_CVar.GetCVar()
. The previous alias is still available as a script wrapper. [1]Patch 4.1.0 / API changes (2011-04-26): Added
retVal2
return value; maderetVal3
a boolean.Patch 1.1.0 / API changes (2004-11-07): Included in the original World of Warcraft release as
GetCVar()
[2]
Classic
Patch 1.13.2 / API changes (2019-08-26): Forked from 8.1.0 codebase as
GetCVar()
See also
- ReloadUI()
- Frame:RegisterUnitEvent(event, unit)
- ADDON_LOADED
External links
GitHub FrameXML, Gethe
Globe "wut?" Tool, Townlong-Yak
References
- ^ Townlong-Yak 2019-03-12. Util.lua.
- ^ 2004-12-06, UnitFrame.lua, version 1.1.2.4115, near line 1, archived at Townlong-Yak