# List Iterator help

**URL:** <https://www.finalbuilder.com/forums/t/list-iterator-help/7748>\
**Category:** Discussion\
**Created:** [January 12, 2026, 5:45pm UTC](https://www.finalbuilder.com/forums/t/list-iterator-help/7748 "2026-01-12T17:45:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hsosa](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/hsosa/32/91_2.png) [@hsosa](https://www.finalbuilder.com/forums/u/hsosa)\
**Post date:** [January 12, 2026, 5:45pm UTC](https://www.finalbuilder.com/forums/t/list-iterator-help/7748/1 "2026-01-12T17:45:49Z")

</div>

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.

 ![OneFileTasks](https://www.finalbuilder.com/forums/uploads/default/original/2X/0/0f1f1e29a63e23153a2c6feec0871aedd8d4f131.jpeg)  
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.  
 ![OneFileVariable](https://www.finalbuilder.com/forums/uploads/default/original/2X/5/52e9d84b8cf428f0627cc7f49ec6791584085a71.jpeg)

I created a new project with the List Iterator.

 ![OneFileListIterator](https://www.finalbuilder.com/forums/uploads/default/original/2X/4/45732fbba9d31b0cb2bfc48ac000c44de1724bd7.jpeg)  
I’m using the “FileName” variable to store the current item in the list.

 ![OneFileIteratorContents](https://www.finalbuilder.com/forums/uploads/default/original/2X/9/99374470ad4d8dee6eb97abc34844a1a54415a79.jpeg)

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!

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [January 12, 2026, 9:25pm UTC](https://www.finalbuilder.com/forums/t/list-iterator-help/7748/2 "2026-01-12T21:25:52Z")

</div>

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.
