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

  if(mode = 1)

= is the assignment operator
== is the comparison operator