Difference between revisions of "boolean"

(Created page with '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].')
 
 
(2 intermediate revisions by 2 users 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]:
 +
 
 +
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