Change if...else to switch...case.