Created
December 27, 2013 22:33
-
-
Save beezeebly/8153584 to your computer and use it in GitHub Desktop.
Ruby logical operators
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# && the AND operator | |
true && true # result true | |
true && false # result false | |
false && false # result false | |
# || the OR operator | |
true || true # result true | |
true || false # result true | |
false || false # result false | |
# ! the NOT operator | |
!true # result false | |
!false # result true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment