print “How old are you cuz I need to know if you could watch naruto”
age = gets.chomp
if age > 13
puts " You definetly can"
elseif age < 13
puts “You Can’t”
else age = 13
puts"You are at the age of it"
end
I don’t get it
I believe in Ruby gets.chomp returns a string, not an integer. You can’t compare integers and strings using > or <. In Ruby, there is no such thing as elseif. You have if, elsif, and else. Lastly, = is not a comparison operator in Ruby. There is == and ===. = is the assignment operator, which assigns the value on the right to the object on the left: