Not too complex, unless you want it to be, as in the example of a "window" comparator. This is a little something from nuclear instrumentation circuits, actually, although there's now a couple of adaptations for Eurorack (such as Joranalogue's). In that case, you can have three gates...a window comparator allows you to set a voltage "window" with an upper and lower limit, either as two separate levels or via a "width" control. With that, you can have a gate for "below", "in" and "above", and you can also potentially allow for triggers to be outputted on each limit-crossing. Another cool device, which Ladik makes a cheap 4 hp version of, is a "discriminator". This is a specialized comparator that detects CV movement, allowing you to output a gate or trigger for "rise", "fall", "steady" and "any change". Ladik's actually the king of these little 4 hp specialized logic-state devices...worth a look!