Is this a loop opportunity?

I don’t think I can improve until I know how to cut down on copious blocking like this. Can anyone see a (not TOO advanced) way I could reduce the blockery?

Maybe not a loop, but the AND & OR logic blocks may be helpful. The example on the left works with a number range, the example on the right works with discrete values.

Everything can be made even simpler, but the author didn’t show all values, so I’m not sure that simplification can be implemented.