https://www.activepieces.com logo
Hi all, I'm trying to understand how the
# 🐢|general
k
Hi all, I'm trying to understand how the loop function works. Instead of copy/pasting these two steps for every path, I'd like to learn how to use the loop properly. Could someone please assist? https://cdn.discordapp.com/attachments/1053778461275201576/1463230827138781316/image.png?ex=6978fc66&is=6977aae6&hm=0ba757bffb3b41fd8d63b4b6e011504de7b784162a3c55590e50ad41b8997629&
a

https://youtu.be/ZQXN7APTtpo?t=192β–Ύ

here you go
k
Thank you so much! This is unfortunately a tiny bit unclear though. Would you be able to show me with some specific examples based on my screenshot? Like I don't understand where to move my repetetive steps to etc. Thank you in advance!
a
grab them
and put them where the big add button is
i.e grab the router step
and put it inside the loop
a
it all depends on your flow scenario
if you want to do the checking multiple times
you put inside a loop
k
I only want the generate number and delay step to be triggered for each path
a
then drag the router step outside to the add button under the loop
then leave it there
Actually
Karla, what are you trying to do
just tell me what is it you are trying to build
I want to avoid this
a
and why do you need the loop step ?
just put them above the router
k
There are basic steps that are neeed for each path, but I don'T want to have you know 10 same steps for each path
a
and use their outputs inside the router
k
ahhh, I will try. Maybe it's easier than I thought.
Hi, apologies, so I need the router because the generate random number function should well...generate a random number for each path.
a
just generate the random number outside the router
and use its output inside