Logical Operators

Operator Name Description
! Not Returns true if the operand to the right evaluates to
false. Returns false If the operand to the right is true.

& And Returns true if both of the operands evaluate to true.
Both operands are evaluated before the And operator is applied.

I Or Returns true if at least one of the operands evaluates to true.
Both operands are evaluated before the Or operator is applied.

&& Conditional And Same as &, but if the operand on the left returns false,
returns false without evaluating the operand on the right.

II Conditional Or Same as I, but if the operand on the left returns true, returns true without evaluating the operand on the right.

No comments: