Logical operators, also known as boolean operators, allow multiple conditional statements to be combined into a more complex statement. There are three (3) logical operators, but two of them are much more important, so we will focus on them first.
Operator | Explanation | Syntax |
and |
|
condition1 and condition2 |
or |
|
condition1 or condition2 |