Changed precedence of if_then_else