VEX joystick programming

We are working in class to program for the joystick and, while the joysticks are working, the buttons are not. We are using programs that we have used before and it seems correct. I’ll paste below. We have tried to do the config but do not get flashing light from red to green. Doesn’t seem to do anything. We have updated all firmware. Any other suggestions? This is something we have done before and I just can’t figure out why it isn’t working. Thanks for any help you can give.

#pragma config(Motor, port1, LeftMotor, tmotorVex393_HBridge, openLoop)
#pragma config(Motor, port2, RightMotor, tmotorVex393_MC29, openLoop, reversed)
#pragma config(Motor, port3, LiftMotor, tmotorVex393_MC29, openLoop)
#pragma config(Motor, port4, ClawMotor, tmotorVex393_MC29, openLoop)
//!!Code automatically generated by ‘ROBOTC’ configuration wizard !!//

task main()
{
{
while ( 1==1 )
{
motor[LeftMotor] = vexRT Ch2 ];
motor[RightMotor] = vexRT Ch3 ];
motor[LiftMotor] = vexRT Ch1 ];
motor[ClawMotor] = vexRT Ch4 ];
}
}
if(vexRT[Btn6U] == 1)
{
motor[ClawMotor] = 127;
}
else if (vexRT[Btn8D] == 1)
{
motor[ClawMotor] = -127;
}

else
{
	motor[ClawMotor] = 0;

}

if( vexRT[Btn8R] == 127	)
{
	motor[LiftMotor] = 127;
}
else if (vexRT[Btn8L] == 1)
{
	motor[LiftMotor] = 127;
}

else
{
	motor[LiftMotor] = 0;
}

}

Putting the ifs and elses in the while loop should fix it:

task main(){
    while ( 1==1 ){
        motor[LeftMotor] = vexRT  Ch2 ];
        motor[RightMotor] = vexRT  Ch3 ];
        motor[LiftMotor] = vexRT  Ch1 ];
        motor[ClawMotor] = vexRT  Ch4 ];

        if(vexRT[Btn6U] == 1){
            motor[ClawMotor] = 127;
        }
        else if(vexRT[Btn8D] == 1){
            motor[ClawMotor] = -127;
        }
        else{
            motor[ClawMotor] = 0;
        }

        if(vexRT[Btn8R] == 1){
            motor[LiftMotor] = 127;
        }
        else if(vexRT[Btn8L] == 1){
            motor[LiftMotor] = -127;
        }
        else{
            motor[LiftMotor] = 0;
        }
    }
}