# Unwanted empty line using if condition

**URL:** https://community.mp3tag.de/t/unwanted-empty-line-using-if-condition/11817
**Category:** Export
**Created:** [April 5, 2011, 10:41am UTC](https://community.mp3tag.de/t/unwanted-empty-line-using-if-condition/11817 "2011-04-05T10:41:33Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![LosMintos](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/54ee81/32.png) [@LosMintos](https://community.mp3tag.de/u/LosMintos)
#### Post date: [April 5, 2011, 10:41am UTC](https://community.mp3tag.de/t/unwanted-empty-line-using-if-condition/11817/1 "2011-04-05T10:41:33Z")

</div>

Hi,

the export configuration

```
$loop(%_workingdir%)$if(%year%,%year%,)
$loopend()

```

should write %year% to a file but do nothing if %year% is false, e.g. no year tag exists. In fact, an empty line is written to the file in case of a non existing year tag.

Any suggestions how to avoid or remove the empty line?

---

_[View the full topic](https://community.mp3tag.de/t/unwanted-empty-line-using-if-condition/11817)._
