These are logical operators, that works with boolean datatype, two are binary one is unary. The result is always boolean.
Operator | Datatype | Description |
---|---|---|
&& | boolean | True if both operands are true, otherwise false (logical and). |
|| | boolean | True if at least one of the operands is true, otherwise false (logical or). |
! | boolean | True if the operand if false, otherwise false (logical not). |