I am modeling a comparator as follows:
simulate this circuit – Schematic created using CircuitLab
So I want the following: if V15=0, then the output should be 0. But if V15=5, then it should output some Vcc (which I have as 12). When I simulate this, I only get + or -12 at the output, so I am not sure where I have errored.