# Export, $Puts() is executed always

**URL:** https://community.mp3tag.de/t/export-puts-is-executed-always/14084
**Category:** Export
**Created:** [November 4, 2012, 3:46pm UTC](https://community.mp3tag.de/t/export-puts-is-executed-always/14084 "2012-11-04T15:46:46Z")
**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: [November 4, 2012, 4:03pm UTC](https://community.mp3tag.de/t/export-puts-is-executed-always/14084/2 "2012-11-04T16:03:24Z")

</div>

> [@Victor Kostas](#):
>
> I found out put() and puts() statements are executed even the execution flow does not pass from that point. ... Very disappointing... Is this behavior since the beginning of mp3Tag?

My experience is, that the functions $put/$puts cannot be used as an argument within an expression.  
I use the function $put/$puts always at the top most level.

For example (this is a different algorithm than yours, just to show the principle) ...  
$put(myvar,'a')  
$puts(myvar,$if($eql(1,2),'bcdef','1 \<\> 2'))  
$get(myvar)

See also ...  
[/t/3727/1](https://community.mp3tag.de/t/3727/1)  
[Check if field value is identical for all selected tracks](https://community.mp3tag.de/t/13244/5)

DD.20121104.1800.CET

---

_[View the full topic](https://community.mp3tag.de/t/export-puts-is-executed-always/14084)._
