# $if script-befehl mit $puts script-befehl

**URL:** https://community.mp3tag.de/t/if-script-befehl-mit-puts-script-befehl/3727
**Category:** Allgemein
**Created:** [September 3, 2006, 12:30pm UTC](https://community.mp3tag.de/t/if-script-befehl-mit-puts-script-befehl/3727 "2006-09-03T12:30:30Z")
**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: [September 3, 2006, 1:22pm UTC](https://community.mp3tag.de/t/if-script-befehl-mit-puts-script-befehl/3727/2 "2006-09-03T13:22:42Z")

</div>

> [@audioslave](#):
>
> ... kapiere das nicht, warum folgender $if scriptbefehl nicht funktioniert:  
> **$if(eql("%genre%","Various Artists"),puts("var","%album%"),puts("var","%artist%"))**

Probier' es 'mal hiermit:

**$puts(var,$if($eql(%GENRE%,'Various Artists'),%ALBUM%,%ARTIST%))**

DD.20060903.1722  
DD.20060903.2055 Edit

---

_[View the full topic](https://community.mp3tag.de/t/if-script-befehl-mit-puts-script-befehl/3727)._
