Logical Operators

Logical Operators

Name

Symbol

Description

&&

&&

Logical AND: true if both x and y are true

||

||

Logical OR: true if either x or y is true

!

!

Logical negation