Use if-else instead of case.