View Single Post
  #7   Spotlight this post!  
Unread 13-02-2003, 00:37
Anthony Kesich's Avatar
Anthony Kesich Anthony Kesich is offline
Programmer Turned Engineer
AKA: SonKenshin
#1097 (Site 3 Engineernig)
Team Role: Leadership
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Sacramento, CA
Posts: 186
Anthony Kesich has a spectacular aura aboutAnthony Kesich has a spectacular aura about
Send a message via AIM to Anthony Kesich
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.