You cannot do what you are trying to do with a switch. It won't work. You have to use the if statements, but you'll need to fix those conditions. 50 > sales < 25 is invalid (besides not being mathematically possible), among other things; it should (probably) be sales < 50 && sales > 25.