Truth Terms Flashcards
&&
(and)
|
(or)
!
(not)
!=
(not equal)
==
(equal)
> =
(greater than equal)
<=
(less than equal)
true
false
true
false
NOT True?
!false
!true
true
false
OR(||) TRUE?
true || false
true || true
false || true
false || false
true
true
true
false
Note: any || statement with a ‘true’ is immediately true
AND (&x2) True?
true & false
true & true
false & true
false & false
false
true
false
false
Note: any & that has a ‘ false’ is immediately false
NOT OR True?
not (true || false)
not (true || true)
not (false || true)
not (false || false)
false
false
false
true
NOT AND True?
!(true & false)
!(true & true)
!(false & true)
!(false & false)
true
false
true
true
!= True?
1 != 0
1 != 1
0 != 1
0 != 0
true
false
true
false
== True?
1 == 0
1 == 1
0 == 1
0 == 0
false
true
false
true