Because there is no "break" block -- AND the stop block kills the script, here's one way, albeit a bit Goldberggie to do it. Need 2 scripts. 1, in script#1: Use a broadcast and wait block 2. Start script#2 with an event block that receives the message from script#1. 3. Put the loop inside script#2 along with the relevant tests. 4. When true (trigger hits), stop just that script. 5. Control will return to script #1 See bare bones example with trigger set to 5
No biggie, just needed to search through a list of arbitrary length to find something. This solution is simple (meaning easy to debug) Once you get what you want just stop that script and return to the "calling" script to continue with the found information. Divide & Conquer! C