False

From OpenEUO
Revision as of 20:21, 1 November 2010 by Ximan (Talk | contribs) (Created page with "== Description == false is a lua keyword and valid value of type 'boolean'. While false is the opposite of true, nil is also considered false unless explicitly tested for. ...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Description

false is a lua keyword and valid value of type 'boolean'. While false is the opposite of true, nil is also considered false unless explicitly tested for.

local a,b,c = true,false,nil
print(a == b)
print(a ~= b)
print(a ~= c)
print(b ~= c)
print(c ~= nil)
--> 'false'
--> 'true'
--> 'true'
--> 'true'
--> 'false'