How to use the if statement in SetInterval

Some examples for the “interval-function” … you will find here…
https://russian-dima.wixsite.com/meinewebsite

For example…
https://russian-dima.wixsite.com/meinewebsite/test-1