Skip to content

Instantly share code, notes, and snippets.

@ryanckulp ryanckulp/elsif.rb
Created Jan 1, 2018

Embed
What would you like to do?
elsif example in Ruby
if x > 4
if x < 6
alert "Correct!"
end
elsif x == 4
alert "Correct!"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.