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.
|
2023-06-10 04:06:42 +02:00
|
|
|
|