# Zwei oder mehr Felder zum Filtern mit einer UND Verknüpfung verbinden

**URL:** <https://community.mp3tag.de/t/zwei-oder-mehr-felder-zum-filtern-mit-einer-und-verknupfung-verbinden/57026>\
**Category:** Allgemein\
**Created:** [April 12, 2022, 2:52pm UTC](https://community.mp3tag.de/t/zwei-oder-mehr-felder-zum-filtern-mit-einer-und-verknupfung-verbinden/57026 "2022-04-12T14:52:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fotoknipser](https://community.mp3tag.de/user_avatar/community.mp3tag.de/fotoknipser/32/10524_2.png) [@Fotoknipser](https://community.mp3tag.de/u/Fotoknipser)\
**Post date:** [April 12, 2022, 2:52pm UTC](https://community.mp3tag.de/t/zwei-oder-mehr-felder-zum-filtern-mit-einer-und-verknupfung-verbinden/57026/1 "2022-04-12T14:52:02Z")

</div>

Hallo,  
ich versuche die funktionierende Abfrage `%_covers% IS "" OR %year% IS ""` in eine UND Funktion zu Ändern.  
` %_covers% IS 1 AND %year% >1` klappt nicht, was ist falsch?  
Beide Feldabfragen für sich klappen, wie verknüpfe ich sie richtig?

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [April 12, 2022, 2:55pm UTC](https://community.mp3tag.de/t/zwei-oder-mehr-felder-zum-filtern-mit-einer-und-verknupfung-verbinden/57026/2 "2022-04-12T14:55:38Z")

</div>

> [@Fotoknipser](#):
>
> `%year% >1`

Guck dir die Dokumentation zu Filter an - `>` ist kein Filteroperator.

> **[Filter and Search – Mp3tag Documentation](https://docs.mp3tag.de/filter/)**
>
> Documentation on Filter and Search and keywords to form complex filter expressions. Mp3tag is the universal Tag Editor.

GREATER wäre richtig

---

<div class="post-metadata">

**Author:** ![Fotoknipser](https://community.mp3tag.de/user_avatar/community.mp3tag.de/fotoknipser/32/10524_2.png) [@Fotoknipser](https://community.mp3tag.de/u/Fotoknipser)\
**Post date:** [April 12, 2022, 3:08pm UTC](https://community.mp3tag.de/t/zwei-oder-mehr-felder-zum-filtern-mit-einer-und-verknupfung-verbinden/57026/3 "2022-04-12T15:08:42Z")

</div>

> [@ohrenkino](#):
>
> GREATER wäre richtig

ok `GREATER 1` klappt, genau wie mein `%year% >1` (kann auch einfach zufällig klappen 🙂

nur, wie verknüpfe ich die beiden?  
weder `%cover% IS 1 AND %year% GREATER 1` noch `(%cover% IS 1) AND (%year% GREATER 1)` klappen

---

<div class="post-metadata">

**Author:** ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)\
**Post date:** [April 12, 2022, 3:31pm UTC](https://community.mp3tag.de/t/zwei-oder-mehr-felder-zum-filtern-mit-einer-und-verknupfung-verbinden/57026/4 "2022-04-12T15:31:48Z")

</div>

> [@Fotoknipser](#):
>
> %\_covers%

vs.

> [@Fotoknipser](#):
>
> %cover%

Richtig ist `"%_covers%" IS 1 AND year GREATER 1`

* * *

Bei `%_covers%` handelt es sich um ein Informationsfeld (also kein Tag-Feld, welches editiert werden kann), weshalb es mit einem Unterstrich beginnt.

Außerdem ist es ein Formatstring (wegen der Verwendung der %-Zeichen), sodass es sinnvoll ist, das Ganze in Anführungszeichen zu packen. Das steht auch bei den [Notes](https://docs.mp3tag.de/filter/#notes) in der Dokumentation:

> If `<field>` in HAS/IS/GREATER/LESS/EQUAL/MATCHES contains `$` or `%` it should be enclosed in double quotation marks and will be treated as a [format string](https://docs.mp3tag.de/format) instead of a tag field name.

Bei `year` habe ich keine Anführungszeichen verwendet, da einfache Tag-Felder auch direkt angesprochen werden können.

---

<div class="post-metadata">

**Author:** ![Fotoknipser](https://community.mp3tag.de/user_avatar/community.mp3tag.de/fotoknipser/32/10524_2.png) [@Fotoknipser](https://community.mp3tag.de/u/Fotoknipser)\
**Post date:** [April 12, 2022, 3:44pm UTC](https://community.mp3tag.de/t/zwei-oder-mehr-felder-zum-filtern-mit-einer-und-verknupfung-verbinden/57026/5 "2022-04-12T15:44:24Z")

</div>

> [@Florian](#):
>
> Richtig ist `"%_covers%" IS 1 AND year GREATER 1`

Herzlichen Dank, es funktioniert.

---

<div class="post-metadata">

**Author:** ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)\
**Post date:** [May 12, 2022, 3:44pm UTC](https://community.mp3tag.de/t/zwei-oder-mehr-felder-zum-filtern-mit-einer-und-verknupfung-verbinden/57026/6 "2022-05-12T15:44:39Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
