Converts a ternary operator to a corresponding if statement.