A few rookie teams were asking how to make a servo move to a specific place at the click of a button. I thought I would post how I usually do this. Here some some that will make the servo move to 100 and stay there when button 6U is pressed, and move to to 20 and stay there when button 6D is pressed.
Nested Trinaries, very nice. Can you do it in one line like this?
servo[arm] = val = (b1 ? hival : b2 ? lowval : val);
Note that trinaries are std C, and work in EasyC as well as Robot C.