sorry, I mean ||, i missed the key.
Printable View
this is the problem i'm running into. I want
a b c
1 1 1
1 0 1
0 1 1
0 0 0
but, when a and b are 0, c must be able to be 0 or 1 on it's own, independant of a and b.
The story goes:
i turn on either button A or button B and it turn on C. When i turn off button A or B then button C turns off. Now, if I ONLY turn on button C it stays on and I can turn button C off as well.
I think you need a fourth variable.
--
Mats
how would i do that?
d = ( !c && ( a || b ) ) || c;
If c is off, you get a or b
If c is on, then a and b don't matter.
what is the 4th variable?
cause i've got button A, B, and C...
the output of D is the button C.
can I just define D as the button C ?
they would be the same.
When D is ON then C is ON
when D is OFF then C is OFF