Difference between revisions of "boolean"

m
 
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 ==
 
== Other Languages ==
 
{{i18n|boolean}}
 
{{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