Logic

Lua knows three logical operators;,   and. These operators allow to manipulate formulas to return true or false. In Lua, false and nil are considered false, all other values are considered true.

not
not is a logic operator that will negate boolean values. Values considered  will become   and vice versa. for example: print(not true) will output

and
and is a logic operator that will evaluate two conditions, and returns  only when both conditions are. for example: print(true and false) will output print(true and true) will output

or
or is a logic operator that will return  if any of the given two conditions are print(false or false) will output print(false or true) will output