411 REFERENCE · Wikibooks
Lua Programming/truth
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
In lua, expressions of truth evaluate to a /boolean/ value of /true/ or /false/. In lua, all values are true, except /nil/ and /false/.
Lua provides keywords for true and false
The lua programming language provides the /keyword/s true and false to represent values of truth in an /expression/.
Lua provides a boolean datatype
The /boolean/ datatype can be used to hold a /boolean/ value.