|
question
Quote:
Originally posted by gwross
Code:
If high_pressure = 1 THEN compressor_go_on
If high_pressure = 0 THEN compressor_go_off
|
if the pressure is high, why would on want to turn on the compressor? Subsequently, if high_pressure = 0, meaning the pressure was not high, wouldn't you want to turn on the compressor, not turn it off? cammie got it right in the beginning. but joe ross does have a point on how to make the code easier, though i would change it to this:
Code:
compressor = ~high_pressure
~ being the symbol for NOT
-Kesich
__________________
C is screwing up my English--I'm ending all my sentences in semi-colons;
Horray for most things! -George Carlin
"Sure, I'll play rugby. Besides, I have a lot of experience running from really big guys who want to cream me." -Me, Freshman year
Last edited by Anthony Kesich : 13-02-2003 at 00:39.
|