Logical Operators
Logical operators work with the boolean values true
and false
.
Logical AND:
a && b
If the left-hand side is false, the right-hand side is not evaluated.
Logical OR:
a || b
If the left-hand side is true, the right-hand side is not evaluated.
Last updated