Creating Table of Consecutive Numbers

Hi. The process I’m automating involves saving files into separate folders, and this process sits in a while loop until a boolean becomes true. I would like the name of each folder to update with every iteration of the while loop and add a number to the folder name each time. I’m not sure how to incorporate list and number variables with a calculation to achieve this. Thanks!

Hi
You could use a counter that increases +1 in each loop. Then use the join text action to join the folder name or file name with that counter and save the result into a new_filename/new_folder name variable.

2 Likes

Hi. Thanks for the response. How would I create a counter variable? I understand the logic but I’m not sure exactly how to create it.
Thanks

Hi
create a variable of type number and call it “counter” :wink:
Then use that variable within the loop with expression value action: counter=counter+1

2 Likes