# Can't get the equal function to work using two functions as arguments

**URL:** <https://community.mp3tag.de/t/cant-get-the-equal-function-to-work-using-two-functions-as-arguments/52842>\
**Category:** Support\
**Created:** [April 16, 2021, 1:53am UTC](https://community.mp3tag.de/t/cant-get-the-equal-function-to-work-using-two-functions-as-arguments/52842 "2021-04-16T01:53:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrsousa2](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/278dde/32.png) [@jrsousa2](https://community.mp3tag.de/u/jrsousa2)\
**Post date:** [April 16, 2021, 1:53am UTC](https://community.mp3tag.de/t/cant-get-the-equal-function-to-work-using-two-functions-as-arguments/52842/1 "2021-04-16T01:53:59Z")

</div>

The below gives me the number of open "(" in the title.  
$sub($len(%TITLE%),$len($replace(%TITLE%,$char(40),)))

Using ascii code 41, it gives me the number of ")" in the title tag.

Now, if I put both inside of the $eql function to see if they match, it doesn't work. Ideas?

Edit: Subtracting them works though, that's a way out.

---

<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 16, 2021, 4:19am UTC](https://community.mp3tag.de/t/cant-get-the-equal-function-to-work-using-two-functions-as-arguments/52842/2 "2021-04-16T04:19:30Z")

</div>

How did you apply the equal function?  
Usually, it is part of a $if()-statement like $if($eql(...  
`$if($eql($len($replace(%title%,')',)),$len($replace(%title%,'(',))),yes,no)`

If you are looking for files with not matching pairs of brackets, you could also use such a filter:  
`%title% HAS "(" AND NOT %title% HAS ")"`

---

<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:29pm UTC](https://community.mp3tag.de/t/cant-get-the-equal-function-to-work-using-two-functions-as-arguments/52842/3 "2026-02-09T12:29:11Z")

</div>


