View Single Post
  #3   Spotlight this post!  
Unread 30-05-2007, 20:54
lukevanoort lukevanoort is offline
in between teams
AKA: Luke Van Oort
no team
 
Join Date: Oct 2005
Rookie Year: 2005
Location: Waterloo, ON, Canada
Posts: 1,873
lukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond reputelukevanoort has a reputation beyond repute
Send a message via AIM to lukevanoort
Re: Single Click On/Off Using the Trigger in EasyC

Quote:
Originally Posted by Brad Voracek View Post
I've never written C where && means both values are equal to the value on the right of the ==. I've always done it if (p1_sw_trig == 0 && n == 0)...

Maybe try that?
Since the value of a trigger is already essentially a boolean you can just use it as itself, no == needed. So what he has is the same thing as (p1_sw_trig == 1 && n == 0)
__________________
Team 1219: 2009 - Mentor
Team 587: 2005 - Animator, 2006-2008 - Team Captain