Zumo Control

the problem is system skips the first if statement and executes only second if statement and else statement.

It's probably having as much trouble with the useless curly braces and poor indenting as I am.

Get rid of the useless curly braces, and use Tools + Auto Format. Perhaps then it will be clear(er). If not, post your cleaned up code.