In Lua, booleans can be manipulated through logical operators. These operators include not, and, and or.
In simple expressions, the results are fairly straightforward:
print(not true) --> false
print(not false) --> true
print(true or false) --> true
print(false and true) --> false
...