The switch construct can only check for constants, if you want to check for a range, you should use if then structure instead.