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.
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).