IF and timer problem

This statement is vague. There are no "parameters" in if statements, only conditional expressions.

Please post your entire sketch and be specific about the conditions you wish to test in your if statement and also the actions you would like to take as a result of those conditions being met.