Created
January 27, 2020 15:47
-
-
Save zaagan/6b1ad47dc281489da95b9b917b6ee3e7 to your computer and use it in GitHub Desktop.
Ruby Basics - If Elsif
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
response = :greeting | |
if response == :greeting | |
puts "Hello !" | |
elsif response == :shout | |
puts "Don't yel" | |
else | |
puts "Huh ?" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment