31.08.2021, 11:50
This is more of a Lua language thing. As described in the manual:
Equality (==) first compares the type of its operands. If the types are different, then the result is false (https://www.lua.org/manual/5.1/manual.html#2.5.2)
This is what happens if you try to compare true or false to 1.
Equality (==) first compares the type of its operands. If the types are different, then the result is false (https://www.lua.org/manual/5.1/manual.html#2.5.2)
This is what happens if you try to compare true or false to 1.