I have a simple IF statement when that occur a function must start - that’s working
I have added a timer, (not a delay) that secure that the function doesn’t start directly first after the time has passed– that’s working.
Now I need the following:
The same IF statement
The same time-period
If something happened with the parameter in the IF statement in the time- period, that make the IF statement wrong, the timer must be reset and the IF statemen not executed.
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.