|
Page 1 of 1
|
[ 4 posts ] |
|
Need Help Writing And, Or Statements
| Author |
Message |
|
BHHSrobotics
Rookie
Joined: Wed Jan 21, 2009 1:40 pm Posts: 14 Location: Brookings OR
|
 Need Help Writing And, Or Statements
We would like to use an and statement in our program so it looks at both of our sensors at once, how would you do this? Any help would be appreciated. 
|
| Thu Feb 12, 2009 2:45 pm |
|
 |
|
Emilhem
Novice
Joined: Tue Jan 13, 2009 5:22 pm Posts: 72 Location: USA, Pennsylvania
|
 Re: Need Help Writing And, Or Statements
You can always use a void statement.
_________________ We need a Linux Version!
|
| Thu Feb 12, 2009 5:01 pm |
|
 |
|
Jeff McBride
Professor
Joined: Fri Sep 19, 2008 1:22 am Posts: 200
|
 Re: Need Help Writing And, Or Statements
The AND and OR operators in RobotC are represented by the symbols "&&" for AND and "||" for OR.
_________________ Jeff McBride Benson Robotics Club
|
| Thu Feb 12, 2009 8:51 pm |
|
 |
|
BHHSrobotics
Rookie
Joined: Wed Jan 21, 2009 1:40 pm Posts: 14 Location: Brookings OR
|
 Re: Need Help Writing And, Or Statements
That's exactly what i was looking for, thank you 
|
| Fri Feb 13, 2009 2:42 pm |
|
|
|
Page 1 of 1
|
[ 4 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 3 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|