LOOPER v2 not working correctly when started from step enter trigger

@Mihaly
I found a problem in LOOPER v3. Please run this simple test App.
app.json (14.9 KB)

If you go to step2, I was expecting to see “A”, “B”, “C”, but I see “B”, “B”, “C”.

This happens if the “Iteration” prop is 1 before starting the loop.

As I explained in this post,

setValue("Iteration", 0);

does not work as a initializer.

I propose do something like

if(0 != getValue("Iteration")){
   fireEvent("Error", "Iteration not zero");
   return;
}

here, so that the loop do not start if the Iteration is not zero.