# Filter comparing two fields

**URL:** <https://community.mp3tag.de/t/filter-comparing-two-fields/19751>\
**Category:** Support\
**Created:** [February 2, 2018, 6:25pm UTC](https://community.mp3tag.de/t/filter-comparing-two-fields/19751 "2018-02-02T18:25:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bookworm1632](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/a6a055/32.png) [@bookworm1632](https://community.mp3tag.de/u/bookworm1632)\
**Post date:** [February 2, 2018, 6:25pm UTC](https://community.mp3tag.de/t/filter-comparing-two-fields/19751/1 "2018-02-02T18:25:59Z")

</div>

How do you filter to select songs where two tags are equal.

I've tried  
$eql(%artist%, %artist\_bak%)  
$neql(%artist%, %artist\_bak%)  
%artist% EQUAL %artist\_bak%  
$eql(%artist%, %artist\_bak%) IS TRUE

None give the expected behaviour.

---

<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:** [February 2, 2018, 6:32pm UTC](https://community.mp3tag.de/t/filter-comparing-two-fields/19751/2 "2018-02-02T18:32:00Z")

</div>

This simply states that the fields are equal (sort of).  
You are missing the "if":  
"$if($eql(%artist%,%artist\_bak%),1,0)" IS 1

---

<div class="post-metadata">

**Author:** ![bookworm1632](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/b/a6a055/32.png) [@bookworm1632](https://community.mp3tag.de/u/bookworm1632)\
**Post date:** [February 2, 2018, 6:58pm UTC](https://community.mp3tag.de/t/filter-comparing-two-fields/19751/3 "2018-02-02T18:58:12Z")

</div>

> [@ohrenkino](#):
>
> This simply states that the fields are equal (sort of).  
> You are missing the "if":  
> "$if($eql(%artist%,%artist\_bak%),1,0)" IS 1

Thanks - I tried this expression, but it does nothing in the filter. Whether I set it to "IS 1" or "IS 0", I still see all 25 files.

DOH I missed the quotes.

WOrks a treat thanks!

---

<div class="post-metadata">

**Author:** ![MP3Freak\_Peter](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/c68b51/32.png) [@MP3Freak\_Peter](https://community.mp3tag.de/u/MP3Freak_Peter)\
**Post date:** [February 2, 2018, 7:24pm UTC](https://community.mp3tag.de/t/filter-comparing-two-fields/19751/4 "2018-02-02T19:24:08Z")

</div>

> [@bookworm1632](#):
>
> How do you filter to select songs where two tags are equal.
> 
> I've tried  
> $eql(%artist%, %artist\_bak%)  
> $neql(%artist%, %artist\_bak%)  
> %artist% EQUAL %artist\_bak%  
> $eql(%artist%, %artist\_bak%) IS TRUE
> 
> None give the expected behaviour.

What are you trying to do?

---

<div class="post-metadata">

**Author:** ![Zerow](https://community.mp3tag.de/user_avatar/community.mp3tag.de/zerow/32/11379_2.png) [@Zerow](https://community.mp3tag.de/u/Zerow)\
**Post date:** [February 4, 2018, 6:49pm UTC](https://community.mp3tag.de/t/filter-comparing-two-fields/19751/5 "2018-02-04T18:49:32Z")

</div>

> [@bookworm1632](#):
>
> How do you filter to select songs where two tags are equal.[...]

> [@MP3Freak\_Peter](#):
>
> What are you trying to do?

Yes, what are you trying to do?

Find song A and B and possible C, D, E... than happen to have the same title?

Or trying to find all of those files that have the exact same title written to them in two different fields- because for whatever reason you have titles stored in more than just one field?

---

<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:** [February 5, 2018, 4:53am UTC](https://community.mp3tag.de/t/filter-comparing-two-fields/19751/6 "2018-02-05T04:53:21Z")

</div>

I think that it is fairly clear:  
The OP wants to compare the 2 fields %artist% and %artist\_bak%.

---

<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:** [February 9, 2026, 12:27pm UTC](https://community.mp3tag.de/t/filter-comparing-two-fields/19751/7 "2026-02-09T12:27:13Z")

</div>


