# \[F\] $eql() function case-sensitivity

**URL:** https://community.mp3tag.de/t/f-eql-function-case-sensitivity/12112
**Category:** Fixed Bugs
**Tags:** bug-fixed
**Created:** [June 7, 2011, 3:20pm UTC](https://community.mp3tag.de/t/f-eql-function-case-sensitivity/12112 "2011-06-07T15:20:00Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![ptrk.mj](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ptrk.mj/32/300_2.png) [@ptrk.mj](https://community.mp3tag.de/u/ptrk.mj)
#### Post date: [June 7, 2011, 3:20pm UTC](https://community.mp3tag.de/t/f-eql-function-case-sensitivity/12112/1 "2011-06-07T15:20:00Z")

</div>

$eql() function is case-insensitive despite Mp3tag help file claims it "returns true, if x _equals_ y".

Mp3tag lacks _case-sensitive_ boolean function for verifying equality of two strings. At the moment, one must resort to using regular expressions.

E.g.

```
$if($eql(a,A),x,y)

```

returns x

There's also $strcmp() function (same name as in foobar2000) but it seems to be just an alias of $eql() in spite of being case-sensitive in foobar.

According to help file syntax of two applications "should be (almost) compatible" 🙂

Please change the behavior of $eql() function or provide us with another solution.

---

<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: [June 7, 2011, 3:58pm UTC](https://community.mp3tag.de/t/f-eql-function-case-sensitivity/12112/2 "2011-06-07T15:58:33Z")

</div>

> [@ptrk.mj](#):
>
> $eql() function is case-insensitive despite Mp3tag help file claims it "returns true, if x _equals_ y".  
> ... There's also $strcmp() function ...

Yes, $strcmp and $stricmp work the same as $eql, but I do not see where these string comparing functions have been documented.

DD.20110607.1958.CEST

---

<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: [June 7, 2011, 4:30pm UTC](https://community.mp3tag.de/t/f-eql-function-case-sensitivity/12112/3 "2011-06-07T16:30:17Z")

</div>

I'd like a working $strcmp() function.

---

<div class="post-metadata">

### Author: ![nan4k7](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/n/7993a0/32.png) [@nan4k7](https://community.mp3tag.de/u/nan4k7)
#### Post date: [November 26, 2014, 10:34pm UTC](https://community.mp3tag.de/t/f-eql-function-case-sensitivity/12112/4 "2014-11-26T22:34:42Z")

</div>

I know this is an old post but any chances of an advance with this? I also need a eql or similar function that is able to compare case sensitive values.

---

<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: [November 27, 2014, 6:37am UTC](https://community.mp3tag.de/t/f-eql-function-case-sensitivity/12112/5 "2014-11-27T06:37:34Z")

</div>

It is most annoying that the $eql() function actually reports false positives if the compared strings contain umlauts (äöü).  
So, yes: this function does not perform in the expected way.

---

<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: [November 27, 2014, 5:14pm UTC](https://community.mp3tag.de/t/f-eql-function-case-sensitivity/12112/6 "2014-11-27T17:14:03Z")

</div>

> [@ohrenkino](#):
>
> It is most annoying that the $eql() function actually reports false positives if the compared strings contain umlauts (äöü). ...

Hmm, this works for me ...

$if($eql('abc ä xyz','abc ä xyz'),'yes','no')' - '$if($eql('abc ä xyz','abc Ä xyz'),'yes','no')  
Result : "yes - no"

DD.20141127.1913.CET

---

<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: [November 27, 2014, 5:36pm UTC](https://community.mp3tag.de/t/f-eql-function-case-sensitivity/12112/7 "2014-11-27T17:36:25Z")

</div>

> [@DetlevD](#):
>
> Hmm, this works for me ...
> 
> $if($eql('abc ä xyz','abc ä xyz'),'yes','no')' - '$if($eql('abc ä xyz','abc Ä xyz'),'yes','no')  
> Result : "yes - no"
> 
> DD.20141127.1913.CET

Then there must be something wrong which I cannot identify - please see the description in this thread:  
[[F] $eql() scheint Schreibweise zu ignorieren](https://community.mp3tag.de/t/16360/1)

It may be that it works with string constants but for some inexplicable reason it does not work with variables and the $upper function.

---

<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: [December 13, 2014, 12:04pm UTC](https://community.mp3tag.de/t/f-eql-function-case-sensitivity/12112/8 "2014-12-13T12:04:12Z")

</div>

This has been addressed with the latest version Mp3tag v2.66.

Kind regards  
Florian

---

<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: [May 19, 2017, 12:38pm UTC](https://community.mp3tag.de/t/f-eql-function-case-sensitivity/12112/9 "2017-05-19T12:38:46Z")

</div>

> [@DetlevD](#):
>
> Hmm, this works for me ...  
> $if($eql('abc ä xyz','abc ä xyz'),'yes','no')' - '$if($eql('abc ä xyz','abc Ä xyz'),'yes','no')  
> Result : "yes - no"

Since Mp3tag v2.66 ...  
this Formatstring ...  
$if($eql('abc ä xyz','abc ä xyz'),'yes','no')' - '$if($eql('abc ä xyz','abc Ä xyz'),'yes','no')  
... gives the result "yes - yes".

and this Formatstring ...  
$if($StrCmp('abc ä xyz','abc ä xyz'),'yes','no')' - '$if($StrCmp('abc ä xyz','abc Ä xyz'),'yes','no')  
... gives the result "yes - no".

DD.20170519.1700.CEST

---

<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: [December 28, 2018, 2:05pm UTC](https://community.mp3tag.de/t/f-eql-function-case-sensitivity/12112/10 "2018-12-28T14:05:20Z")

</div>

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