Logical Operators Flashcards
(4 cards)
1
Q
What are our three logical operators
A
And
Or
Not
2
Q
And logical operator
A
And logical operator is used to test two conditions
Both conditions must evaluate true for the result to be true otherwise it will result in false
3
Q
OR logical operator
A
Both conditions must evaluate false for the result to be false
And if either condition is true then the result will be true
4
Q
NOT logical operator
A
If the condition evaluates too true, then they are not condition evaluates to false and if the condition evaluate false and then condition evaluate true