I want to do something like this: execute code every 10 seconds when 10 seconds has passed and it's time to turn the code, execute code only if (some boolean) = true how would I do this? ...