Without curly brackets, you could accidentally write a semicolon after the IF-statements. The semicolon is a valid, empty statement, which will be "execute" instead of the actual (intended) one.
So either write the IF-statements with curly brackets blocks ...or carefully search for semicolons after the IF-statement.Powered by ScribeFire.