# Feature suggestion: 0==false

**URL:** https://community.mp3tag.de/t/feature-suggestion-0-false/16016
**Category:** General Discussion
**Created:** [August 15, 2014, 2:02pm UTC](https://community.mp3tag.de/t/feature-suggestion-0-false/16016 "2014-08-15T14:02:17Z")
**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: [August 15, 2014, 2:02pm UTC](https://community.mp3tag.de/t/feature-suggestion-0-false/16016/1 "2014-08-15T14:02:17Z")

</div>

Please make $if interpret 0 and empty string as false.

This would allow e.g.

```
$if($strstr(haystack,st),found, not)

```

which currently must (AFAICS) be written:

```
$if($neql(0,$strstr(haystack,st)),found, not)
```

---

<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: [August 15, 2014, 3:04pm UTC](https://community.mp3tag.de/t/feature-suggestion-0-false/16016/2 "2014-08-15T15:04:24Z")

</div>

> [@chrisjj](#):
>
> ... which currently ...

... can be written as ...  
$ifgreater($strstr(haystack,needle),0,yes,no)

DD.20140815.1905.CEST

---

<div class="post-metadata">

### Author: ![JJ\_Johnson](https://community.mp3tag.de/user_avatar/community.mp3tag.de/jj_johnson/32/67_2.png) [@JJ\_Johnson](https://community.mp3tag.de/u/JJ_Johnson)
#### Post date: [August 15, 2014, 4:53pm UTC](https://community.mp3tag.de/t/feature-suggestion-0-false/16016/3 "2014-08-15T16:53:42Z")

</div>

The whole scripting language needs a ground up rewrite, IMO. Make it more rigid, and better define what is TRUE and FALSE. Right now it's a crapshoot how most things work. It's very inconsistent and has always been so.

---

<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: [August 15, 2014, 8:09pm UTC](https://community.mp3tag.de/t/feature-suggestion-0-false/16016/4 "2014-08-15T20:09:37Z")

</div>

> [@DetlevD](#):
>
> ... can be written as ...
> 
> $ifgreater($strstr(haystack,needle),0,yes,no)

Thanks D. No fewer characters, but fewer brackets makes it IMO preferable! 🙂

---

<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: [August 15, 2014, 8:17pm UTC](https://community.mp3tag.de/t/feature-suggestion-0-false/16016/5 "2014-08-15T20:17:28Z")

</div>

> [@JJ Johnson](#):
>
> The whole scripting language needs a ground up rewrite, IMO. Make it more rigid, and better define what is TRUE and FALSE. Right now it's a crapshoot how most things work.

I agree it could be better, but while retaining compatibility, the crapshoot can be fixed simply by complete documentation.
