Logical operators are used to evaluate several comparisons, by combining their possible values.
| Operator | Name | Example | Returns true when: |
| && | Y | (7>2) && (2<4) | Returns true when both conditions are true. |
| and | Y | (7>2) and (2<4) | Returns true when both conditions are true. |
| || | O | (7>2) || (2<4) | Returns true when at least one of the two conditions is true. |
| or | O | (7>2) or (2<4) | Returns true when at least one of the two conditions is true. |
| ! | No | ! (7>2) | Denies the value of the expression. |