I’m going through this exercise and something funny is happening on this one. I can’t tell if it’s codeacademy, or I’m not getting something. Here’s my code:
puts cheese ? “Cheese is good” : “Cheese is bad”
puts true ? “True” : “False”
puts 3 < 4 ? “3 is less than four” : “three is not less than four”
The strange part is that the Ruby console evaluates the cheese part of the code as false. No matter what I put, it still evaluates to “Cheese is bad.” I’m confused. The other two evaluate correctly.