what is the problem in this motor control arduino code

I said you can fix your current problem with a single pair of braces, but you had to repost the same question (again badly) in a new thread, which I then had to merge with this thread to save other people wasting their time answering a question that already had a solution, thereby wasting my time.

I'm out.