# Anyone know how to pass a constant into a loop?

**URL:** https://community.mp3tag.de/t/anyone-know-how-to-pass-a-constant-into-a-loop/8901
**Category:** Support
**Created:** [September 6, 2009, 1:02pm UTC](https://community.mp3tag.de/t/anyone-know-how-to-pass-a-constant-into-a-loop/8901 "2009-09-06T13:02:37Z")
**Posts on this page:** 2
**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: [September 6, 2009, 1:02pm UTC](https://community.mp3tag.de/t/anyone-know-how-to-pass-a-constant-into-a-loop/8901/1 "2009-09-06T13:02:37Z")

</div>

I have a script that refers to the same contant value a few times, in loops, and rather than have each reference be a literal, I want a single constant that I can change in one place. Given [/t/8897/1](https://community.mp3tag.de/t/8897/1), I can't use a variable for this.

My best alternative is placing the value in a spare field of every track... which fails if the track file are RO.

Any other ideas?

---

<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:21pm UTC](https://community.mp3tag.de/t/anyone-know-how-to-pass-a-constant-into-a-loop/8901/2 "2026-02-09T12:21:46Z")

</div>


