I use the following to check whether the answer to a posed question is true or false:
when "new"
n = nums[rand(nums.length)]
puts "Question:"
puts qs[n].question
torf = gets.downcase.to_str.eql? qs[n].answer.downcase.to_str
puts torf
But the result torf is always false even if the right answer is put. What am I missing?
whenwithend.