[SOLVED]Problems with triggering timer functions in 'if' staments

I can fully understand your sigh
The =/== confusion must be one of the most common mistakes to make. = is used either accidentally or on purpose because of familiarity with other languages and of course, the code compiles either way so you don't get any immediate indication of the problem.

If only the compiler could understand what you meant rather than what you wrote.