expected primary-expression before ')' token

May I know what is wrong with this?

if ((t_s1 - t_0_s1 > 5000){state_s1 = 0;})

This line should probably be

if (t_s1 - t_0_s1 > 5000){state_s1 = 0;}

or even

if (t_s1 - t_0_s1 > 5000)
 {
   state_s1 = 0;
 }

The extra pair of parentheses is just plain wrong.

@UniquelyLucky

Please do NOT cross post.

Can you read THIS POST next to understand the forum a little better.

T.I.A.

Bob.

@UniquelyLucky

You are UniquelyUNLucky today as you are on a 24 hour time out for REPEATED cross posting after I just issued your warning.

Now please go read the thread at the link I gave you.

Bob.