# Unexpected If-Then Behavior in an Export Loop

**URL:** https://community.mp3tag.de/t/unexpected-if-then-behavior-in-an-export-loop/16037
**Category:** Support
**Created:** [August 22, 2014, 9:08pm UTC](https://community.mp3tag.de/t/unexpected-if-then-behavior-in-an-export-loop/16037 "2014-08-22T21:08:29Z")
**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: [August 23, 2014, 4:35am UTC](https://community.mp3tag.de/t/unexpected-if-then-behavior-in-an-export-loop/16037/2 "2014-08-23T04:35:21Z")

</div>

> [@rko31415](#):
>
> ... The error comes in the first if statement ... Thoughts?

Have a look there ...  
[Export, $Puts() is executed always](https://community.mp3tag.de/t/14084/2)  
You have to modify the $if statements, because $put/$puts does not work within $if expression.

DD.20140823.0835.CEST

---

_[View the full topic](https://community.mp3tag.de/t/unexpected-if-then-behavior-in-an-export-loop/16037)._
