Change from 'switch' to cascaded if-else where we can control the order of evaluation.