Logical Operators
Logical Operators
Logical Operators, also known as Boolean Operators. Mainly, returns Boolean values as of true or false.
The Logical Operators are as follows:
Operator |
Description |
Example |
---|---|---|
&& |
Logical AND |
10 > 20 && 20 > 10 False |
|| |
Logical OR |
10 > 20 || 20 > 10 True |
! |
Logical NOT |
! (10 = = 20) True |