WoW API type: nil

From AddOn Studio
Revision as of 04:47, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API TYPE nil to API TYPE nil without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

API types < nil

The Lua 'nil' type, use in WoW Lua and the WoW API. See WoW Lua for WoW Lua reference. See also values and types for the general reference definition.

Details[edit]

The Lua the 'nil' type, or usually thought of as the 'nil' value, is used to designate the absence of any other real type or value.

In WoW, 'nil' with number 1 was used to denote a kind of 'boolean' true or false value for the WoW API, as this works often nicely with the language.  However with new version of Lua gaining a real 'boolean' type, more often now the real Lua boolean type is used. See also the WoW Boolean type for more information about the old type.

See also[edit]