smr/doc/appendix.md

9 lines
336 B
Markdown
Raw Permalink Normal View History

2022-12-23 20:30:52 +01:00
## falsey
In Lua, the values `false` and `nil` are considered falsey.
All other values are considered truethy.
In addition, tables may have a metatable that has a `__toboolean` function
to implement their own truethyness or falseyness. `false` should be used in
places where a boolean is expected, and `nil` should be used otherwise.