print "What is your favorite color?"
color = gets.chomp
color.downcase
if color == "green" || "orange"
puts "{#color} is my favorite color too!"
elsif color == "blue"
puts "#{color} is ok"
else
puts "I do not know that color"
end
Why can't you use || on strings?
>>53574889
I noticed my typo in the if section
>>53574889
>if color == "green" || color == "orange"
>>53574958
omfg thank you so much
im a noob
That's some shit tier taste in colors you got there, bud.
>>53575248
green master race
>>53574889
>i hope you have a Code OfConduct for your ruby project anon
>i wouldn't want to have to report you as a rapist sex offender but i will if you are excluding womyn and black trans from participating in your project
>>53574889
does color.downcase work? I think if you want to actually change color, you need to docolor = color.downcaseorcolor.downcase!
>>53574889
>two favorite colors
>green AND orange
sup pajeet
>>53575896
Lmao
>>53574966
Fuck you Karlie Kloss