Converts an if...else statement to an equivalent statement with a conditional expression.