Meaning#

Values true and false. Only false and nil are false in Lua conditions. Zero, an empty string and an empty table are true. Check the exact API contract.

Example#

LUA
local ready = false
if not ready then
  ready = true
end

What happens: ready becomes true because not false is true.

This fragment does not print or write a log message. The values shown are the expected results of the example.

Methods and related calls#

API reference.