Converts an expression that uses an elvis operator to an if-then expression