I have currently made a virtual tag which seems to work that does the following:
$IsNull(<Composer>,$If($IsMatch(<AlbumArtist>,<Artist>"|Various|Various Artists"),,"Album Artist: "<AlbumArtist>),"Composer: "<Composer>" 🎤 "$If($IsMatch(<AlbumArtist>,<Artist>"|Various|Various Artists"),," Album Artist: "<AlbumArtist>))
if composer is null
check if albumartist = artist
if it is, don't say anything
if it isn't, show album artist
if composer isn't null
check if albumartist = artist
if it is, show the composer
if it isn't, show the composer and then the album artist
Now, I want to modify it to do the following:
if composer is null
check if albumartist = artist
if it is, don't say anything
if it isn't, show album artist
if composer isn't null
check if it's the same as artist
if it is, check if albumartist = artist
if it is, don't show anything
if it isn't, show the album artist
if it isn't, check if alumartist = artist
if it is, show the composer
if it isn't, show the composer and then the album artist
This is what I've got, but for some reason, despite always saying "OK", it never displays anything:
$IsNull(<Composer>,$If($IsMatch(<AlbumArtist>,<Artist>"|Various|Various Artists"),,"Album Artist: "<AlbumArtist>),$If($IsMatch(<Composer>,<Artist>),$If($IsMatch(<AlbumArtist>,<Artist>"|Various|Various Artists"),," Album Artist: "<AlbumArtist>),"Composer: "<Composer>" 🎤 "$If($IsMatch(<AlbumArtist>,<Artist>"|Various|Various Artists"),," Album Artist: "<AlbumArtist>)))
I've been scratching my head trying everything I can think of for well over an hour now but can't figure out what's wrong. I've considered maybe it's because I'm not supposed to use tags with $IsMatch, so I tried using $Or, but I just cannot figure out how. Can someone please help me with this?
P.S. On further inspection, the first tag I posted also doesn't work; it never displays the Album Artist tag even when it's different from the Artist tag. I'm guessing it's because $IsMatch only takes regex and not tags.