Hi,
I am new to Alteryx and learning to use "Iterative macro", Below is a simple iterative macro which generated 500 rows as new field then checking for the condition as shown below where in I am validating if the current new value is equal to [Engine.IterationNumber]+1 if true it should change the inputt field to [new] value. But in my case it is only working for 1st row and rest of the values are 9999.

Would anyone please let me know what am I doing wrong here.
Also please let me know how can I assign [Engine.IterationNumber] to a column as shown below. (I have tried using formula tool and assign the value as [Engine.IterationNumber] but it only shows 0 for all lines)
| inputt | [Engine.IterationNumber](iteration value) |
| 1 | 0 |
| 2 | 1 |
| 3 | 2 |
Attached is my macro file. Thanks in advance!
Regards,
Suneeth.