How to break a repeater when the certain condition met?

i’m a new user at make, i already have a basic structure of scenario below

for the case i want is, when the data on google sheets (column B) is present, the repeater will stop and continue to the next step. but when the data is not present, i want it to loop the sleep (ex for 15 s) for 10 times (input that i put into repeater)

but when i tried my scenario, if the data presents, it’s still looping, but the repeater return my data (10 - the repeater do repeat). how can i solve this?

in the first set of variable i set stopRepeater = false, in the repeater filler, i already make the filter of stopRepeater == false and the first true router i already make my stopRepeater = true, but the data of the first variable (outside of the repeater ) is not changing.

how can i do for my scenario what i want?

Hi @Seo_Testing , If I understand correctly :

Your filter after the repeater module is calling stopRepeater value, but you’ll need to use ‘Get variable’ module just before this filter (between repeater and search in sheet) to actually CALL the variable. Else it’s just getting the variable you declared in the very first module.

If the data is present : set Variable module will be activated (which is setting stopRepeater=1 afaik?) aaaand it’ll stop the scenario after it has finished this iteration.
If the data is not present : it’ll go sleep and go for more iteration(s) :

  • Note : if your search row does not have anything dependent on “Repeater”, the data will not change and so it will continue going to sleep till it reaches max. number of repetitions that you put in ‘repeater’.
1 Like

hello @kudrachaa

ahh i see that’s why the repeater still continuing repeat because i didn’t call the variable on the true router. i asked chatGPT and the AI from the make but still cannot solve this for 2 days. thank you for your information. i tried it just now and it works !