1st Competition, Please help!

I am putting together a competition robot but i have run into a problem where the motors with motor controllers are stuttering (they are programmed to the back bumpers). They will work, but will go on and off. We have tried different ports on the vertex, different motors, and different motor controllers. We have also tried the motors with no weight or anything connected to them and the problem remains. If it would help, I can attach code.

Thanks for your help.

Yes, attach the code, it sounds like the issue described here.
https://vexforum.com/t/robotc-bad-programming-habits/28357/1

Hi jpearman,
Thanks for the response. Here is an excerpt of code where the motor is jittery. Any thoughts?

if(vexRT[Btn5U] == 1)
{
motor[leftArm] =127 ;
motor[rightArm] =127 ;
}

else(vexRT[Btn5U] == 0)
{
motor[leftArm] =0;
motor[rightArm] =0;
}

if(vexRT[Btn5D] == 1)
{
motor[leftArm] = -127;
motor[rightArm] = -127;
}

else(vexRT[Btn5D] == 0)
{
motor[leftArm] = 0;
motor[rightArm] = 0;
}

I think it should be:

if(vexRT[Btn5U] == 1)
{
        motor[leftArm] =127 ;
        motor[rightArm] =127 ;
}

else if(vexRT[Btn5D] == 1)
{
	motor[leftArm] = -127;
	motor[rightArm] = -127;
}


else 
{
	motor[leftArm] = 0;
	motor[rightArm] = 0;
}

yes, @sara is correct, the reason why yours wasn’t working was because two statements were correct at the same time (the first else, and the second if).