Mod API Reference:Nullable: Difference between revisions

From Warzone Wiki
Jump to navigation Jump to search
Created page with "Just a signal that the variable can be '''nil''' in Lua. '''Nullable''' is not actually a proxy object in the Mod API, but still shows up on in the documentation as one. Of ..."
 
DanWL60 (talk | contribs)
mNo edit summary
 
Line 2: Line 2:


Of course, everything in Lua can be '''nil''', so this attribute may seem redundant.  However, as a general rule, you can assume anything that's a primitive type like an integer or number will never be '''nil''' unless it's documented with this '''Nullable''' signal.
Of course, everything in Lua can be '''nil''', so this attribute may seem redundant.  However, as a general rule, you can assume anything that's a primitive type like an integer or number will never be '''nil''' unless it's documented with this '''Nullable''' signal.
[[Category:Mod API Reference]]

Latest revision as of 17:27, 4 December 2018

Just a signal that the variable can be nil in Lua. Nullable is not actually a proxy object in the Mod API, but still shows up on in the documentation as one.

Of course, everything in Lua can be nil, so this attribute may seem redundant. However, as a general rule, you can assume anything that's a primitive type like an integer or number will never be nil unless it's documented with this Nullable signal.