Created
January 1, 2018 21:51
-
-
Save ryanckulp/924804ace7c289a60fa9b5e367bc7c88 to your computer and use it in GitHub Desktop.
assignment and is-equal example in Ruby
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
x = 3 | |
y = 3 | |
x == y # => returns 'true' | |
x = 4 | |
y = 5 | |
x == y # => returns 'false' | |
x = 5 | |
y = 7 | |
x < y # => returns 'true' | |
x <= y # => returns 'true' | |
y >= x # => returns 'true' | |
y != x # => returns 'true' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment