how to do in iterator i++;
Status: Open · Asked by nizam on · 0 views
hi there
how can i do something equivalent to i=i+1; for each iterator loop?
if want to use javascript, wondering how to use it with pabbly variable.
my use case, i want to add delay after each 5 loop/iteration.
if (count ==5)
reset loop,
delay(1 min)
else
increase count+1;
Hello @nizam,
There isn’t any native feature in Pabbly to achieve this functionality directly. However, if you want to process only up to 5 iterations (for example, 5 elements of an array), you can structure it as follows:
- Add the Iterator with the array object.
- After that, add a Counter step which increments by 1 on each run.
- Then, add a Filter that checks whether the counter is less than or equal to 5.
- If the condition is met, the workflow will proceed further.
- If not, the filter will fail and the workflow will stop processing further.
This way, you can control how many iterations are processed.
Hello @nizam,There isn’t any native feature in Pabbly to achieve this functionality directly. However, if you want to process only up to 5 iterations (for example, 5 elements of an array), you can structure it as follows:
- Add the Iterator with the array object.
- After that, add a Counter step which increments by 1 on each run.
- Then, add a Filterthat checks whether the counter is less than or equal to 5.
- If the condition is met, the workflow will proceed further.
- If not, the filter will fail and the workflow will stop processing further.
This way, you can control how many iterations are processed.
yes, how to implement step 1 to 2 in pabbly connect. i still cant figure it out. can you make 1 example how its done
hi therehow can i do something equivalent to i=i+1; for each iterator loop?
if want to use javascript, wondering how to use it with pabbly variable.my use case, i want to add delay after each 5 loop/iteration.
if (count ==5)
reset loop,
delay(1 min)
else
increase count+1;
It’s not possible to reset the loop of an Iterator. The use case you are describing is currently not supported.
It’s not possible to reset the loop of an Iterator. The use case you are describing is currently not supported.
sorry, not resetting the iterator loop, only the counter
Hello @nizam,
Could you please share the workflow where you were trying to achieve this? This will allow us to better assist you.
Please be aware that to assist you effectively, we may need to access your Pabbly Connect account. If you're comfortable with this, please grant us permission by stating in your next reply:
"You have my permission to log into my Pabbly Connect account and edit the workflow, if required. Here is the registered email address associated with it."
Looking forward to assisting you further.
