Nil: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
 
m (Добавление языков)
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
==See Also==
==See Also==
*[http://www.lua.org/pil/2.1.html Nil in Programming in Lua]
*[http://www.lua.org/pil/2.1.html Nil in Programming in Lua]
[[Category:Scripting Concepts]]
[[en:Nil]]
[[ru:Nil]]
[[de:Nil]]

Latest revision as of 16:45, 17 April 2021

Nil is a type with a single value, nil, whose main property is to be different from any other value. A global variable has a nil value by default, before a first assignment, and you can assign nil to a global variable to delete it. Lua uses nil as a kind of non-value, to represent the absence of a useful value.

See Also