# Using List Iterator on a Variable

**URL:** https://www.finalbuilder.com/forums/t/using-list-iterator-on-a-variable/331
**Category:** Discussion
**Created:** [January 25, 2007, 8:51am UTC](https://www.finalbuilder.com/forums/t/using-list-iterator-on-a-variable/331 "2007-01-25T08:51:55Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [January 25, 2007, 8:51am UTC](https://www.finalbuilder.com/forums/t/using-list-iterator-on-a-variable/331/1 "2007-01-25T08:51:55Z")

</div>

I need to have a list of strings, and do some actions on each of thestrings. This seems like a job for the List Iterator task with the listin a variable. But I’m having trouble getting it to work, because thelist iterator iterates by lines, and I can’t figure out how to use SetVariable to create a value with multiple lines. If I try hittingEnter while in the “New Value” field, it closes the Set Variable popup.I’ve tried putting in \n, but that doesn’t work.  
  
Any suggestions on how can I do this?  
  
Thanks,  
  
 Keith Hearn

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [January 28, 2007, 11:05am UTC](https://www.finalbuilder.com/forums/t/using-list-iterator-on-a-variable/331/2 "2007-01-28T11:05:02Z")

</div>

Hi Keith,  
  
You can use the Append to Variable action, which lets you append one or more new lines to a variable value.  
  
Regards,  
  
Angus

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [January 29, 2007, 6:35am UTC](https://www.finalbuilder.com/forums/t/using-list-iterator-on-a-variable/331/3 "2007-01-29T06:35:19Z")

</div>

Angus,  
  
Thanks, this works. It woul dbe nice if there were a way to do it in just one step, but at least I’m able to get it done.  
  
 Keith

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [January 29, 2007, 11:14am UTC](https://www.finalbuilder.com/forums/t/using-list-iterator-on-a-variable/331/4 "2007-01-29T11:14:16Z")

</div>

Hi Keith,  
  
The Append to Variable actually lets you insert newlines into the text field to append, so you should be able to do it in just a single step.  
  
- Angus

---

<div class="post-metadata">

### Author: ![stevage](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/bc8723/32.png) [@stevage](https://www.finalbuilder.com/forums/u/stevage)
#### Post date: [January 30, 2007, 5:34am UTC](https://www.finalbuilder.com/forums/t/using-list-iterator-on-a-variable/331/5 "2007-01-30T05:34:03Z")

</div>

Keith, perhaps what you’re missing is that in any field, you can press F2 to get a field editor window. You can type new lines in there.  
  
Steve

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [January 30, 2007, 7:31am UTC](https://www.finalbuilder.com/forums/t/using-list-iterator-on-a-variable/331/6 "2007-01-30T07:31:26Z")

</div>

Ahhh, I didn’t know that. I just gave it a try and it works like a charm. Thank you for the illumination.  
  
 Keith
