# Tag Feld formatieren Syntax

**URL:** https://community.mp3tag.de/t/tag-feld-formatieren-syntax/10029
**Category:** Allgemein
**Created:** [March 3, 2010, 8:55pm UTC](https://community.mp3tag.de/t/tag-feld-formatieren-syntax/10029 "2010-03-03T20:55:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![hpk](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/h/848f3c/32.png) [@hpk](https://community.mp3tag.de/u/hpk)
#### Post date: [March 3, 2010, 8:55pm UTC](https://community.mp3tag.de/t/tag-feld-formatieren-syntax/10029/1 "2010-03-03T20:55:01Z")

</div>

Im Feld encodedby steht bei meinen eigenen Files hpk oder ein 3er Kürzel des Kollegen, der mir das File ausgeliehen hat. ![:rolleyes:](https://community.mp3tag.de/uploads/default/original/1X/3a79e8b0b7d169b30216785521d7c6f4f895c421.gif ":rolleyes:")

Nun möchte ich alle nicht 3-stelligen Kürzel mit 'unknown' ersetzen. Nach meinem Verständnis sollte der folgende Befehl funktionieren:

$if($len(%encodedby%)=3,%encodedby%,'unknown')

Tut er aber nicht. Was mach ich falsch?

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [March 3, 2010, 9:20pm UTC](https://community.mp3tag.de/t/tag-feld-formatieren-syntax/10029/2 "2010-03-03T21:20:33Z")

</div>

Für einen Vergleich brauchst du die $eql() Funktion.

---

<div class="post-metadata">

### Author: ![hpk](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/h/848f3c/32.png) [@hpk](https://community.mp3tag.de/u/hpk)
#### Post date: [March 3, 2010, 9:25pm UTC](https://community.mp3tag.de/t/tag-feld-formatieren-syntax/10029/3 "2010-03-03T21:25:30Z")

</div>

Danke, genau das war's ...

$if($eql($len(%encodedby%),3),%encodedby%,unknown)

läuft nun ...
