3 ms·
> What makes Lua a bit different from other script languages is that 0, "0", "", {} e. t. c. are not false in Lua. In Ruby only nil and false are falsey, every
by lloeki 4y ago
> What makes Lua a bit different from other script languages is that 0, "0", "", {} e. t. c. are not false in Lua.
In Ruby only nil and false are falsey, everything else is truthy.