Operator
|
Description
|
Example
|
&&
|
Logical AND: true if both the operands are true, else returns false
|
a&&b
|
||
|
Logical OR: true if either of the operands is true; returns false if both are false
|
a||b
|
!
|
Logical NOT: true if the operand is false and vice-versa.
|
!a
|