Im using a For Each loop to loop through an array which contains a list of strings that looks like this COMPANYNO|DATE. When my outer SQL1 company equals Company from Data Iterator (which is being used to split the string), I want to exit the For Each loop. When I exit the For Each Loop, it never really ends or resets.
On the second iteration of SQL1, we go back into the For Each loop and I want to start back over at the beginning of the array with iteration 1. However when it comes back in on the second pass, the For Each loop picks up with the iteration it left off.
I would like to Reset the For each every time I come in but my assign node isn't working, is this even possible, thanks in advance, see attached.
I'm to reset it ForEach7740_iterationNumber = -1, Ive also tried setting to zero and 1 and doesn't seem to work.
Yeah im looping through a javascript Array opposed to Expression. I could count the array and do it your way. It would probably automatically reset itself that way if I exit for each and come back in. thanks for the tip, ill try it.