# \[X\] $eql failure

**URL:** https://community.mp3tag.de/t/x-eql-failure/5796
**Category:** No Bugs
**Created:** [November 26, 2007, 12:01am UTC](https://community.mp3tag.de/t/x-eql-failure/5796 "2007-11-26T00:01:18Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![chrisjj](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@chrisjj](https://community.mp3tag.de/u/chrisjj)
#### Post date: [November 26, 2007, 12:01am UTC](https://community.mp3tag.de/t/x-eql-failure/5796/1 "2007-11-26T00:01:18Z")

</div>

$eql fails to output true when expected even though its result is interpreted as expected by $if.

Help says: returns true, if x equals y.  
but from "$eql(1,1)" expected "true", got "".  
From "$if($eql(1,1),true,false)" expected "true", got "true".

That from the following Export script:

```
Help says: $eql(x,y) returns true, if x equals y.
but from "$eql(1,1)" expected "true", got "".
From "$if($eql(1,1),true,false)" expected "true", got "true".
```

---

<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: [November 26, 2007, 8:40pm UTC](https://community.mp3tag.de/t/x-eql-failure/5796/2 "2007-11-26T20:40:06Z")

</div>

The help doesn't say anything about how true manifests itself.

It's not a bug.

---

<div class="post-metadata">

### Author: ![chrisjj](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@chrisjj](https://community.mp3tag.de/u/chrisjj)
#### Post date: [November 26, 2007, 9:16pm UTC](https://community.mp3tag.de/t/x-eql-failure/5796/3 "2007-11-26T21:16:55Z")

</div>

The help doesn't say anything about how anything manifests itself! 😉 So I assumed true, like numbers and strings, manifests itself as itself.

> It's not a bug.

OK!

Workaround for this non-bug: $if($eql(1,1),true,false) outputs true.

---

<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 26, 2007, 9:47pm UTC](https://community.mp3tag.de/t/x-eql-failure/5796/4 "2007-11-26T21:47:15Z")

</div>

> [@chrisjj](#):
>
> The help doesn't say anything about how anything manifests itself! 😉 So I assumed true, like numbers and strings, manifests itself as itself.
> 
> > It's not a bug.  
> > OK!  
> > Workaround for this non-bug: $if($eql(1,1),true,false) outputs true.

Hmm ...

$if2($eql(1,1),0)

simply returns nothing for itself (but an imaginary invisible value of trueness), but that can't be true, because help files says that $if2 returns the value of the first parameter, if it is 'true'.

Those boolean functions should always return manifest values like 0 for false and 1 for true to allow mathematical calculations and so on.

DD.20071126.2346.CET

---

<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:20pm UTC](https://community.mp3tag.de/t/x-eql-failure/5796/5 "2018-12-28T14:20:56Z")

</div>

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