You have got true
and false
.
Thats it.
You check the logic in if
statements.
We have these logical operators:
Operator | meaning |
---|---|
&& |
AND |
\|\| |
OR |
! |
NOT |
== |
equals |
!= |
not equals |
The rarely used xor logic must be derived from these operators:
(a || b) && !(a && b)
or easier:
a != b