Logical operators
Logical operators
Logical operators apply standard boolean algebra operations to their operands.
Operator | Operator name | Example | Result |
---|---|---|---|
! | logical NOT | !a | the logical negation of a |
&& | logical AND | a && b | the logical AND of a and b |
|| | logical OR | a || b | the logical OR of a and b |
Logical NOT
The logical NOT expression has the form.
!
|