Program for pneumatics (2-action) piston program for robotC

Does anyone have a program for RobotC to make the pneumatic pistons activate out with 1 button and go back in with another.

dont have robotc installed on this computer give me a min

#pragma config(Sensor, dgtl1, piston, sensorDigitalOut)
#pragma config(Sensor, dgtl2, button_a, sensorDigitalIn)
#pragma config(Sensor, dgtl3, button_b, sensorDigitalIn)
//!!Code automatically generated by ‘ROBOTC’ configuration wizard !!//

task main()
{
while(1 == 1){
if(SensorValue[button_a] == 1){
SensorValue[piston] = 1;
}
if(SensorValue[button_b] == 1){
SensorValue[piston] = 0;
}
}
}
//enjoy!