How does the condition "execution count" work?
Posted: 01 Aug 2014 10:55
The help says "An internal counter is incremented whenever the condition is executed. The counter is reset to zero when to condition is met."
So when I construct a simple loop with an Execution Count condition I would expect that the loop executes exactly count times each time the flow runs, since the internal counter should always reach count and then reset itself for the next time the flow is run.
However, if I set count to 3 the loop often executes only 1 or 2 times. Why?
I've added a very simple example loop: It would be great to use Execution Count for simple loops instead of manually controlling a loop counter with scripts and expressions.
It would then also be nice to be able to initialize count with a variable and also have optionally the Execution Count condition fill a variable with the current count
So when I construct a simple loop with an Execution Count condition I would expect that the loop executes exactly count times each time the flow runs, since the internal counter should always reach count and then reset itself for the next time the flow is run.
However, if I set count to 3 the loop often executes only 1 or 2 times. Why?
I've added a very simple example loop: It would be great to use Execution Count for simple loops instead of manually controlling a loop counter with scripts and expressions.
It would then also be nice to be able to initialize count with a variable and also have optionally the Execution Count condition fill a variable with the current count