In the seventh line, I get the warning, “string literal in condition”. What does the warning mean, and how can I resolve it?
print 'Continue to use calculator? Y or N'
userAgree = gets.chomp
if userAgree == 'Y' or 'y'
userAgree = true
else
userAgree = false
end
Change
to
Or, cleaner and clearer in my opinion: