Discussions
Get the iteration state of a foreach loop?
over 1 year ago by Joshua Williams(edited)
Hi, I’m using a foreach loop in one of my flows, but I have come across the need to get essentially the state of where this loop is in the process.
I went ahead and doublechecked the standard for loop and it appears to have this functionality built-in:
I tried using two separate variables and adding to them after each pass, but it seems like Zenphi forgets the new number created after the initial addition, so the “result” from the “maths” operation is always the same.
Having the ability to check where this loop stands as far as total operation would help others using the platform.
Any combination of options I could use to achieve this?
Thanks!
Josh