Apr-21-2017, 03:00 PM
(Apr-21-2017, 04:46 AM)Luke_Drillbrain Wrote: One was for when I was still in the early stages of creating a loop and wanted to avoid an endless loop and a crash. I could set an integer to track the number of times something looped, and then set a place outside the loop named "JumpOut". If the integer got higher than 1,000 (or some other value), "GoTo JumpOut" would be triggered and the loop would end.
I don't see how that'd be better than just writing a function and using
return
to get out of the function. It's the same thing, except with the function it's easier to see what your actual intention is.