Boolean Operators
True and True = TrueTrue and False = False
False and True = False
False and False = False
When using "and" it will only be true when using "True and True" anything else is False
True or True = True
True or False = True
False or True = True
False or False = False
When using "or" it will only be False when using "False or False" anything else is True
another way of seeing it is when using "or" you have 3 x true and when using "and" you have 3 x False
Comparison Operators
< = Less than> = Greater than
<= = Less than or equal to
>= = Greater than or equal to
== = Equal to
!= = Not equal to
![]() |
Here we can see that all the comparing is equal to True Comparison Operators compare the number on each side and it can only be True or False |
Comments
Post a Comment