Bumper Switch

[FONT=“Book Antiqua”]How do you program a “Bumper Switch”?[/FONT]

Easyc or Robotc?
What do you want the button to control?
It will be something like

if button==1 {
stuff;
}
else{
stuff ;
}

or a little different if in easyc.

Thank you @tabor437