Logical Operators
Logical operators are used to combine conditional statements:
Operator
Description
Example
and
Returns true if both statements are true
x < 5 and x < 10
or
Returns true if one of the statements is true
x < 5 or x < 4
not
Reverse the result, returns false if the result is true
not(x < 5 and x < 10)
Last updated