Push button control over Stepper motor TB6600

Is Condition 1. I'm using TB6600 motor driver to drive the stepper.
Yup. I have tried it on my hardware for this code. Thanks