Difference between revisions of "Null"
From OpenEUO
m (→Description) |
m (→See Also) |
||
(One intermediate revision by the same user not shown) | |||
Line 9: | Line 9: | ||
--> table | --> table | ||
− | + | true | |
== See Also == | == See Also == | ||
* [http://www.easyuo.com/openeuo/wiki/index.php/Simplelib simplelib] | * [http://www.easyuo.com/openeuo/wiki/index.php/Simplelib simplelib] | ||
+ | |||
+ | * [[EOF]] | ||
* [[ERR]] | * [[ERR]] |
Latest revision as of 10:18, 24 November 2010
Description
null is a unique library defined value that is employed in place of nil in certain areas. It's best to pull null into the global environment if needed to any degree. The type returned by type(null) is 'table', so a special library function, non, is used to test whether a variable's value is nil or null. If either of those values, non returns true, and false otherwise.
local sl = dofile(getinstalldir()..'/lib/simplelib.lua') null = sl.null print(type(null)) print(sl.non(null))
--> table true