developing-algorithms

Logical Operators

Logical operators.
Logical operator Description
a AND b Logical AND: true when both of its operands are true
a OR b Logical OR: true when at least one of its two operands are true
NOT a Logical NOT: true when its one operand is false, and vice-versa.

Logical operators.
Logical operator Description
a && b Logical AND (&&): true when both of its operands are true
a || b Logical OR (||): true when at least one of its two operands are true
!a Logical NOT (!): true when its one operand is false, and vice-versa.

Did you enjoy this content?
Signup today and receive free updates straight in your inbox. We will never share or sell your email address.
I agree to have my personal information transfered to AWeber ( more information )