List Iterator help

It was around 10 years ago when I last used FinalBuilder. I have some tedious manual tasks that I want to automate. I got it working with just one file. I went through the help docs, but didn’t find anything that answered my question.


I’m using a variable called “FileName” to store the root/base file name. I have several files with the same base name but different extensions.

I created a new project with the List Iterator.


I’m using the “FileName” variable to store the current item in the list.

I see the iterator working, but it is not passing the current value to the FileName variable. I feel like I’m missing something obvious, but for the life of me, I can’t tell what it is. I suspect it has to do with the variable’s scope. I tried different combinations, but no dice. The FileName variable is set as a project variable.

Do I need to set the FileName variable to “Make Env.,” “IsMacro,” or “Persistent?” Something else?

Thanks!

It’s hard to say for sure without seeing the project file, but it looks to me like you need to set Macro to true on the variables that depend on %FileName% - that ensures that it’s default value expression is re-evaluated every time the variable is referenced.