Replaces if-else statement with ternary operator, commented code.