I\'m looking for a fluent way of determining if a number falls within a specified set of ranges. My current code looks something like this:
int x = 500; // Could
if you need to iterate over the value pairs at some point, I suggest you capture the maximum lower value and the minimum upper value as you do into variables and do:
if ( x>max_lower && x