in reply to if statement confusion
Operator precedence. What you got was: (6 < 8 ? $ans = "true" : $ans) = "false";