How to use the if statement in SetInterval

You’re a hero Dima. I will have a look at your examples and give it another shot.

Thank you for you help!