Merge pull request #77 from Nondv/patch-1

[ruby] merge if/else with if/elsif/else
pull/80/head
Igor Chubin 5 years ago committed by GitHub
commit 32e18c603a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -22,13 +22,6 @@ end
end end
# Conditionals # Conditionals
if 2 * 4 == 8
puts 'thank goodness'
else
puts 'error between keyboard and chair'
end
# Add an extra condition
if 1 == 0 if 1 == 0
puts 'oh no' puts 'oh no'
elsif 1 == 1 elsif 1 == 1

Loading…
Cancel
Save