Setting iterations at runtime
I have a peculiar scenario....
My script needs to be executed for multiple iterations.
But the no. of iterations keeps varying based on certain return values.
My script has multiple transactions and based on the return values,i want to change/set the no of iterations for the same script.
So if the return value from transaction1 is 1 then run the script 10 times else run it 8 times and so on.
Is it possible to change these settings for iterations at run time once the script is incorporated in the scenario?
Re: Setting iterations at runtime
Programmatically. Set "iteration" as a parameter, test it each time around, and when it hits the number you want, exit the script (or just make the main action's code conditional on the iteration being less than or equal to the value you want - then it'll still execute the max # of times, but that latter iterations won't do anything)