Logical Operators Flashcards
0
Q
&&
A
and (true if both are true, false if both are false)
1
Q
||
A
or (true if one is true, false if both are false)
2
Q
~
A
not (gives opposite)
3
Q
xor
A
Exclusive or (true if and only if one is true and one is false)
4
Q
|
A
Or operator that compares arrays element by element.
5
Q
&
A
And operator that compares arrays element by element.