Robot Mesh Program

I’m sorta new to C++ but have been getting better, I want to know if I can run 2 motors for a whole match by just pressing 1 button


If I don’t have this

else { 

Will the motors run until the end of the match?

If there is nothing to stop them, they will keep running, and eat up your battery. I assume this is for an intake?

No a Shooter, That if we constantly shut it down and start it up they overheat and can only fire 4 to 5 shots