Difference between revisions of "boolean"

 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
The boolean type has two values, false and true, which represent the traditional boolean values. See [http://www.lua.org/pil/2.2.html Programming in Lua].
+
From the Lua 5.1 [http://www.lua.org/manual/5.1/manual.html#2.2 reference manual §2.2]:
  
[[Category:Data Types]][[Category:Lua]]
+
Boolean is the type of the values false and true. Both [[nil]] and false make a condition false; ''any'' other value makes it true.
 +
 
 +
[[Category:Lua]]
 +
== Other Languages ==
 +
{{i18n|boolean}}

Latest revision as of 23:07, 5 February 2012

From the Lua 5.1 reference manual §2.2:

Boolean is the type of the values false and true. Both nil and false make a condition false; any other value makes it true.

Other Languages