Hi. Is there unverified perl syntax which allows me to state numeric variables "in between" ranges?
Imagine I have a variable (named: level) with 30 total values. I have a condition that applies to a handful of those values, like:
elsif(VALUE("level") == 5 || VALUE("level") == 6 || VALUE("level") == 7 || VALUE("level") == 15 || VALUE("level") == 21 || VALUE("level") == 22 || VALUE("level") == 23)
Basically, is there a way to write it such that I effective say:
elsif(VALUE("level") == 5 || VALUE("level") == 6 || VALUE("level") == 7 || VALUE("level") == 15 || VALUE("level") == "between 21 and 23")