Hi, While studying opamps I came across comparator and window comparator. I had trouble understanding case of Vin > 2/3 Vcc. As per waveform, comparator 1 is functional and o/p goes negative. But isn't now Vin also more than 1/3 Vcc, so shouldn't comparator 2 make o/p positive. Also when Vin < 1/3 Vcc, then as per waveform, comparator 2 is active and o/p goes negative, but now isn't comparator 1 also active as Vin is also less than 2/3 Vcc, so o/p can also go positive. How does the circuit know which opamp to follow?