# \[X\] $and/$or failure

**URL:** https://community.mp3tag.de/t/x-and-or-failure/5795
**Category:** No Bugs
**Created:** [November 25, 2007, 11:58pm UTC](https://community.mp3tag.de/t/x-and-or-failure/5795 "2007-11-25T23:58:09Z")
**Posts on this page:** 7
**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 25, 2007, 11:58pm UTC](https://community.mp3tag.de/t/x-and-or-failure/5795/1 "2007-11-25T23:58:09Z")

</div>

$and and $or fail to return true when they should.

Help says: $and(x,y) returns true, if x and y are true (not 0 and not empty).  
but from "$and(1,1)" expected "true", got "".  
and from "$or(1,1)" expected "true", got "".

That's from the following Export script:

```
Help says: '$and(x,y) returns true, if x and y are true (not 0 and not empty).'
but from "'$and(1,1)'" expected "true", got "$and(1,1)".
and from "'$or(1,1)'" expected "true", got "$or(1,1)".
```

---

<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:42pm UTC](https://community.mp3tag.de/t/x-and-or-failure/5795/2 "2007-11-26T20:42:20Z")

</div>

Related to this topic.

Also marked as "No 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:19pm UTC](https://community.mp3tag.de/t/x-and-or-failure/5795/3 "2007-11-26T21:19:13Z")

</div>

> Related to this topic.

I think there is a separate issue here...

> Also marked as "No Bug".

... e.g. $if($and(1,1),true,false) outputs false instead of true as expected.

---

<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, 9:21pm UTC](https://community.mp3tag.de/t/x-and-or-failure/5795/4 "2007-11-26T21:21:20Z")

</div>

1 is not the manifestation of trueness 🙂

---

<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:32pm UTC](https://community.mp3tag.de/t/x-and-or-failure/5795/5 "2007-11-26T21:32:41Z")

</div>

It is one of them:

Help: $and(x,y) returns true, if x and y are true (not 0 and not empty).

---

<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 27, 2007, 8:21pm UTC](https://community.mp3tag.de/t/x-and-or-failure/5795/6 "2007-11-27T20:21:21Z")

</div>

> [@chrisjj](#):
>
> Help: $and(x,y) returns true, if x and y are true (not 0 and not empty).

Thanks. I'll remove the part in parentheses from the help.

---

<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-and-or-failure/5795/7 "2018-12-28T14:20:55Z")

</div>

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