Fix if-then-else statement syntax.