Symbol | Name | Description | Example |
---|---|---|---|
&& |
and logical |
returns true if both statements are true | x < 5 && x < 10 |
|| |
or logical |
returns true if one of the statements is true | x < 5 || x < 4 |
! |
not logical |
Invert result, return false if true | !(x < 5 && x < 10) |
Comments