# loop() over word in string

**URL:** https://community.mp3tag.de/t/loop-over-word-in-string/11992
**Category:** Support
**Created:** [May 10, 2011, 12:44pm UTC](https://community.mp3tag.de/t/loop-over-word-in-string/11992 "2011-05-10T12:44:19Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![chrisjj](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@chrisjj](https://community.mp3tag.de/u/chrisjj)
#### Post date: [May 10, 2011, 12:44pm UTC](https://community.mp3tag.de/t/loop-over-word-in-string/11992/1 "2011-05-10T12:44:19Z")

</div>

Is there any way to in Export script to get $loop('aaa bbb ccc') to loop over the words of the string? Some trick with a variable perhaps, letting the inner code access the current word by $get(var)?

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [May 11, 2011, 4:15am UTC](https://community.mp3tag.de/t/loop-over-word-in-string/11992/2 "2011-05-11T04:15:11Z")

</div>

Beside the fact, that I do not know to do something like that, within the current version of Mp3tag 2.48d ... what should be the practical purpose? Please elaborate.

DD.20110511.0819.CEST

---

<div class="post-metadata">

### Author: ![chrisjj](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@chrisjj](https://community.mp3tag.de/u/chrisjj)
#### Post date: [May 11, 2011, 9:05am UTC](https://community.mp3tag.de/t/loop-over-word-in-string/11992/3 "2011-05-11T09:05:55Z")

</div>

I have a custom field containing sub-values that are codes used across many tracks and I wish to Export a report listing the codes and IDing the tracks that used each.

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [February 9, 2026, 12:23pm UTC](https://community.mp3tag.de/t/loop-over-word-in-string/11992/4 "2026-02-09T12:23:05Z")

</div>


