Logical Operators

AND

Both expressions must be True for the result to be True

Expression 1 Expression 2 Result
False False False
False True False
True False False
True True True

 

OR

Either expression must be True for the result to be True

Expression 1 Expression 2 Result
False False False
False True True
True False True
True True True

 

NOT

The result is the opposite of the Expression

Expression Result
True False
False True

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *