I was just experimenting with this today! I figured out a global update function that could work for now, from prototyping a countdown timer.
The basic idea is to use a component that has 2 states, which keeps cycling back to each other, after delaying 1ms. You can put this component and making it invisible in your prototype screen, and inserting the condition that you want to constantly check - for example if X >= 100, set variable etc