I would guess that your 'Content Rating' tag has some other values beside Null,0,1 or 2.
Change your virtual formula to:
$If(<Content Rating>=1,"[E]",$If(<Content Rating>)=2,"[C]",)
The original instructions were for the original poster that wanted to have Explicit and Clean in MB but also read the tags from iTunes.
If you don't want/need to read iTunes tags use ost's instructions.
If you want MB to read any iTunes tags that may already be on your files follow these instructions:
define a custom tag like this
(http://i.cubeupload.com/24tkSD.jpg)
then set the new custom tag to display here:
(http://i.imgur.com/pP5TuB1.jpg)
MB will automatically scan your library to see if any of your tracks have 'Content Rating' tags.
As the iTunes tag syntax is not in the form of 'Explicit' or 'Clean'
(it uses;
0 or null = No Rating,
1 = Explicit,
2 = Clean)
After the scan has completed, you need to set up a virtual tag 'Content Advisory' that you use wherever you want 'Clean' or 'Explicit' displayed
Content Advisory | $IsNull(<Content Rating>,,$If(<Content Rating>=0,,$If(<Content Rating>=1,"Explicit","Clean")))
Hope this clears up the confusion in this thread :)
Sorry if I'm wasting your time, but how would you do the Title+Content Advisory Virtual Tag?
like you set up
Content Advisory | $IsNull(<Content Rating>,,$If(<Content Rating>=0,,$If(<Content Rating>=1,"Explicit","Clean")))
you could use something like:
Title+CA | <Title>$IsNull(<Content Advisory>,,"-"<Content Advisory>)
If you never intend to use "Content Advisory" by itself anywhere, you could just use
Title+CA | <Title>$IsNull(<Content Rating>,,$If(<Content Rating>=0,,$If(<Content Rating>=1,"-Explicit","-Clean")))
and save yourself a virtual tag slot
You then need to use the "Set Displayed Fields..." (in the right-click/dropdown header menus of each view) to remove "Title" and replace it with "Title+CA"
And don't worry, your not wasting my time. I like helping people get the most out of MB.
Just somedays, I take just a little more time to respond than others :)