I think, there is a bug in the ForLoop step.
Before I get to the point, the circumstances:
My internal loop:
Locals.InternalLoop[0]="Mouse"
Locals.InternalLoop[1]="Cat"
Locals.InternalLoop[2]="Dog"
Locals.InternalLoop[3]="Wolf"
My external loop:
Locals.ExternalLoop[0]
Locals.ExternalLoop[1]
The external loop is a parent of internal loop (internal is nested)
Please execute the sequence attached, and pay attention to the value of Current Element variable which isLocals._IL_currentElement during end of first and start of second iteration of the parent ForEach loop.
At the end of last iteration of the internal loop (first iteration of the external loop) the set of values is:
Locals._IL_currentOffset = 3
Locals._IL_currentElement = "Wolf"
Locals._IL_currentSubscript = "[3]"
However, in the next toss (second iteration of the loop) the set variables above looks inconsistent as the variables are like below:
Locals._IL_currentOffset = 3
Locals._IL_currentElement = ""
Locals._IL_currentSubscript = "[3]"
IMO all of they should be cleared.
I think it is a symptom of the bigger defect, as in my other bigger sequence, the Locals._IL_currentElement is not getting refreshed at all which stopping me using it. It look like at the beginning of the next iteration I still have a "Wolf" as a current element.