Is there a way to set a cap on how long a single loop will run?

I know you can change the ‘Maximum Loop Iteration Count’ but that seems to put a cap to every single loop that runs in your entire project all combined together.

I’m using a lot of loops, some of which may run dozens of times. I would like to put a cap on how many times any SINGLE loop will run, that way I could put the cap very low like 100 and I wouldn’t crash my computer. If I put the counter on 100 now then huge parts of my project don’t load properly because there are more than 100 loops run.

Hey @Lowenfas!

You can make an integer variable, before starting the loops, set that int to 0, then as part of the loop, do

  • int + 1,
  • check to see if >= 100,
  • if true: stop
  • if false: restart loop :slight_smile: