If you are using Java, or a language with similar syntax, you'll want a format like this:
Code:
if(condition1)
{
//perform action 1
}
else if(condition2)
{
//perform action 2
}
and so on.
What this will do is stop checking if a button was pressed after one of the conditions is true. I.e., when condition 1 is true, the program will not check for condition 2 and not execute its else statement (if you have one). If what Alan said is the issue, this should be a relatively simple fix.
Now for everyone to tell me that I'm completely wrong and that this won't work.
__________________
Joe
"The ones who will one day rule the world rule the basketball court today."
http://www.fatherjudgerobotics.webs.com
Volunteer 2012 MAR Region Championship - Field Reset
Volunteer 2013 MAR Region Championship - Field Reset