The output of the gate, A.B, depends on the two inputs according to the truth table ... an infinite resistance, and a current flows to the output. As with relays, all kinds of logic circuits ...