- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2021 06:39 AM
Hello everyone,
I am currently working on a flow in the flow designer and my flow looks as follows:
In my loop, I would like to run the following options until the flow variable 'position' (defined on step 2 as an integer = 0) is equal to a value defined in the loop, essentially mimicking your regular for loop. Therefore, I would like to increase the value of position +1 on step 19. Is there a way to do this in flow designer or even using a script for the value of the flow variable? If not what would be a good alternative to this method?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2021 08:41 AM
Hi Andrew,
I upgraded my PDI to Rome. Not sure whether it is added to Rome. There is an alternate way :). You can use inline script.
Below code can be used in the inline script. This takes the flow variable position and increment by 1.
Palani

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2021 08:41 AM
Hi Andrew,
I upgraded my PDI to Rome. Not sure whether it is added to Rome. There is an alternate way :). You can use inline script.
Below code can be used in the inline script. This takes the flow variable position and increment by 1.
Palani

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2021 09:11 AM
Hi Andrew,
Is your issue resolved?
Please mark my response as accepted solution if it resolves your question.
Thank you,
Palani
Palani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2024 12:05 PM
Can I use this within an array? I need to add these term amounts