-- Chapter 16 example: truthy vs falsy in Lua.
-- Only nil and false are falsy. Everything else is truthy.

if 0 then
    print("0 is truthy")
end

if "" then
    print("empty string is truthy")
end

if "false" then
    print("the STRING 'false' is truthy (it is just text)")
end

if nil then
    print("nil is truthy")   -- never prints
else
    print("nil is falsy")
end

if false then
    print("false is truthy") -- never prints
else
    print("false is falsy")
end
