# \[X\] Export scripting: unexpected variable assignment between loops

**URL:** https://community.mp3tag.de/t/x-export-scripting-unexpected-variable-assignment-between-loops/15746
**Category:** No Bugs
**Created:** [May 18, 2014, 9:53pm UTC](https://community.mp3tag.de/t/x-export-scripting-unexpected-variable-assignment-between-loops/15746 "2014-05-18T21:53:00Z")
**Posts on this page:** 1
**Showing post:** 2

<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 19, 2014, 3:37am UTC](https://community.mp3tag.de/t/x-export-scripting-unexpected-variable-assignment-between-loops/15746/2 "2014-05-19T03:37:17Z")

</div>

> [@Scripty](#):
>
> Export scripting: unexpected variable assignment between loops ... $if($eql(1,2),$puts(test,passed),) ...

The Mp3tag export scripting language is rather special.  
You have to code this way ...

**$loop(,1)$puts(test,$if($eql(1,1),'yes','no'))$loopend()$loop(,1)$get(test)$loopend()**

DD.20140519.0737.CEST

---

_[View the full topic](https://community.mp3tag.de/t/x-export-scripting-unexpected-variable-assignment-between-loops/15746)._
