From "if" to "switch" =)