Hi cloud202,
It's very simple, just use this code:
"button" is where you would put an integer that corresponds to the buttons on the VEX LCD. The buttons are:
Left = 1
Center = 2
Right = 4.
Knowing this, you can then check for combinations of buttons being pressed by summing their value. So if you wrote,
you would be checking to see if BOTH the CENTER and RIGHT buttons were pressed, since 2+4 = 6.
So the full table of buttons would be:
LEFT = 1
CENTER = 2
left¢er = 3
RIGHT = 4
left&right = 5
center&right = 6
ALL = 7
Hope that helps!