# Another $put/$get failure?

**URL:** https://community.mp3tag.de/t/another-put-get-failure/5762
**Category:** Support
**Created:** [November 18, 2007, 5:02pm UTC](https://community.mp3tag.de/t/another-put-get-failure/5762 "2007-11-18T17:02:03Z")
**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: [November 18, 2007, 5:02pm UTC](https://community.mp3tag.de/t/another-put-get-failure/5762/1 "2007-11-18T17:02:03Z")

</div>

Could someone please check this Export script for me?

```
$loop(%track%)%track% >> $if($eql(1,%track%),did PUT: $put(aa,%track%),did get: $get(aa))
$loopend()

```

On three files tagged track 1, 2, 3, I get

1 \>\> did PUT: 1 (expecting 1)  
2 \>\> did get: 2 (expecting 1)  
3 \>\> did get: 3 (expecting 1)

Oops.

I wonder if this due to the previously reported $put/$get being more widely effective than believed. In which case... has anyone here actually got $put/$get to work at all?

---

<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: [November 18, 2007, 5:30pm UTC](https://community.mp3tag.de/t/another-put-get-failure/5762/2 "2007-11-18T17:30:39Z")

</div>

So far as I am able to remember, you cannot use PUT in the parameterlist of an IF construct.  
You have to code something like $put(answer,$if($eql(1,%track%),yes,no)).

DD.20071118.1930.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: [November 18, 2007, 11:14pm UTC](https://community.mp3tag.de/t/another-put-get-failure/5762/3 "2007-11-18T23:14:17Z")

</div>

> So far as I am able to remember, you cannot use PUT in the parameterlist of an IF construct.

Aha, thanks. Mods, it would be good if there was a list of such issues.

> You have to code something like $put(answer,$if($eql(1,%track%),yes,no)).

OK, so to not change the variable, I must use $put(answer, ... $get(answer)). Giving the following workaround for my case:

```
$put(aa,$if($eql(1,%track%),%track%,$get(aa)))

```

Thank works! Thanks, Detlev.

---

<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/another-put-get-failure/5762/4 "2026-02-09T12:20:36Z")

</div>


