# $puts failure?

**URL:** https://community.mp3tag.de/t/puts-failure/6524
**Category:** Support
**Created:** [March 26, 2008, 9:15pm UTC](https://community.mp3tag.de/t/puts-failure/6524 "2008-03-26T21:15:40Z")
**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: [March 26, 2008, 9:15pm UTC](https://community.mp3tag.de/t/puts-failure/6524/1 "2008-03-26T21:15:40Z")

</div>

Can anyone tell me why running this Export config on one file:

$puts(v,AAA)$loop(%album%)$puts(v,BBB)$loopend()$get(v)

outputs AAA rather than BBB as expected?

---

<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: [March 26, 2008, 10:48pm UTC](https://community.mp3tag.de/t/puts-failure/6524/2 "2008-03-26T22:48:50Z")

</div>

> [@chrisjj](#):
>
> ... Can anyone tell me ...

[Benutzerdefinierte Variable nicht sichtbar in Loop](https://community.mp3tag.de/t/4489/1)  
Chrisjj, an user defined variable is only valid in the block where it has been defined.  
There is no concept of user defined global variables in reports. This is really bad sometimes.  
Hmm, didin't you discuss a similar problem here in the forum some weeks ago?

DD.20080327.0049.CET

---

<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: [March 26, 2008, 11:43pm UTC](https://community.mp3tag.de/t/puts-failure/6524/3 "2008-03-26T23:43:52Z")

</div>

> an user defined variable is only valid in the block where it has been defined.

If block means loop here, that does accord with what I observe.

Sadly it fails to accord with the docs.

> There is no concept of global variables in reports.

Again, the docs don't agree.

If you're suggesting this is defined behaviour... how so?

> Hmm, didin't you discuss a similar problem here in the forum some weeks ago?

I recall only loop(...$put()...) .

---

<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:20pm UTC](https://community.mp3tag.de/t/puts-failure/6524/4 "2026-02-09T12:20:52Z")

</div>


