# Need help with a not working code

**URL:** https://community.mp3tag.de/t/need-help-with-a-not-working-code/19200
**Category:** Support
**Created:** [August 6, 2017, 10:04am UTC](https://community.mp3tag.de/t/need-help-with-a-not-working-code/19200 "2017-08-06T10:04:23Z")
**Posts on this page:** 1
**Showing post:** 4

<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: [August 6, 2017, 12:34pm UTC](https://community.mp3tag.de/t/need-help-with-a-not-working-code/19200/4 "2017-08-06T12:34:43Z")

</div>

> [@Zerow](#):
>
> I would like to request evaluation of my code that I wrote for a column
> 
> ```
> $if(%ALBUM%, $if($strchr(%ALBUM%,|)'+ OK +','- DISCS'),'')
> 
> ```
> 
> And here is what it is suppose to do: search for the sign \>\>|\<\< in ALBUM tag field and display \>\>+ OK +\<\< if it is there or display \>\>- DISCS\<\< if it is not there; and if the whole ALBUM tag field is simply empty, then display nothing
> 
> Right now I get the INVALID $IF SYNTAX error

You got examples for a working $IF syntax in one of your earlier posts from 2017, e.g.  
[/t/18676/1](https://community.mp3tag.de/t/18676/1)

why didn't you use that template?

---

_[View the full topic](https://community.mp3tag.de/t/need-help-with-a-not-working-code/19200)._
