Yes, there is – but you’d have to create a case for each value (as shown below). You cannot express a range of values with a single case. So if you want readable and maintainable code, you should stick with ifs.