This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
I would like to know whether it would be possible to change iteration number in accordance with the chosen file.
My first attempt was to connect 'file browse' tool to 'drop down' tool, so that the number of records within the file would be input as the iteration number. However this does not seem to change the iteration number.
It's not possible to change the Engine.IterationNumber. It starts at 0 and is incremented by 1 each iteration. What you can do is change the filter where you're checking it. Instead of [Engine.IterationNumber]+2=7, use something like [Engine.IterationNumber]+[Offset]=7. Pass [Offset] into your macro, allowing to you control when the filter condition is met.
Thank you for the reply! Maybe I was a bit misleading, I wanted to update max iteration number, not each engine iteration number (as highlighted below).
@Qiu , Thank you for your response as well. I am taking a look at your workflow and this taught me that iterative macros can take in more than one macro input. I am still in the process of incorporating this idea into the intended workflow.
There's no way to update the max iteration number, either. However, there are 2 stopping conditions for an iterative macro
1. Max iterations is reached.
2. The Iterative Output has 0 records
The second way is the one you want to look into. In your macro use [Engine.IterationNumber]<[MaxIterations]-1 in a filter to control whether or not to pass any records to the iterative output. See the attached for an example