Repeater needs to allow for a conditional number of repeats
Scott Rose
Currently, Make's repeater tool is extremely basic & extremely limited, because it only lets us specify a STATIC NUMBER OF REPEATS, and that's it.
The repeater tool will simply perform a certain number of repeats, with absolutely NO LOGIC applied to the repeats at all.
However, what we really need is to ADJUST the number of repeats if SOME CONDITION happens during one of those repeats.
The MOST COMMON scenario that comes up about 90% of the time is that we want to STOP THE REPEATS if some condition happens during one of the repeats.
For example: Other programming languages that allow "repeats" will also allow you to set a variable to some number at the beginning of the "scenario run", and then that variable gets increased during each repeated run if certain conditions are met. Then, once the variable gets increased beyond a certain number, the repeat will stop and it won't run any more repeats.
We really need this functionality in Make as well.
Log In
Autopilot
Merged in a post:
Repeat the last module(s) until a condition is met
Charlotte TAN-RUGH
I'd love to have an easy way to repeat the last module (possibly with a delay between each repeat) until some condition is met. For example, searching for an email with specific criteria, and if it doesn't find any email, repeat until that email is found, OR until a set number of searches have been attempted. It's similar to the "Retry" error handler, but without requiring an error.
Lassi Eronen
I quite like the idea!
Wonder if you could work around this in the meanwhile by setting and getting a variable (like a boolean for "stop_repeater=true", and then adding a filter in the flow right after the repeater. It's not pretty and would consume unnecessary operations, but would achieve a similar effect I suppose.
Also, if the repeater is at the end of the scenario then you might just as well add a route/conditional step at the very end that will commit the sceneratio once you think it has done enough repetitions. That works of course only when there is nothing after the repeater.