write elsif statement a little tighter by using colons after the symbols: : If Statement Ruby


if lang == :en: print "dog"
 elsif lang == :es: print "perro"
 elsif lang == :fr: print "chien"
 elsif lang == :de: print "Hund"
 else puts "No language set; default = 'dog'."
end