You can compose that with some (I guess 2 will do) Int Compare actions, although it might be useful using a custom range function. I'm quite busy for now, I'll try to get it quickly, but if someone else does it before, this shouldn't be that difficult.
Greetings.