Check if ALBUM ARTIST is the same as ARTIST:
$stricmp(%album artist%,%artist%)
Check if ALBUM ARTIST is NOT 'Various Artists':
$not($stricmp(%album artist%,Various Artists))
Check if both of the above is true at the same time:
$and(
$stricmp(%album artist%,%artist%),
$not($stricmp(%album artist%,Various Artists))
)
Decide what you want to do if that equals true or false:
$if(
$and(
$stricmp(%album artist%,%artist%),
$not($stricmp(%album artist%,Various Artists))
)
,TRUE,FALSE)
Show ALBUM ARTIST only if true, otherwise show nothing:
$if(
$and(
$stricmp(%album artist%,%artist%),
$not($stricmp(%album artist%,Various Artists))
)
,%album artist%,)
Also, you may want to check if ALBUM ARTIST even exists in the first place. Otherwise the above script would show the contents of ARTIST in case ALBUM ARTIST was missing.
$if($meta(album artist),
$if(
$and(
$stricmp(%album artist%,%artist%),
$not($stricmp(%album artist%,Various Artists))
)
,%album artist%,)
,)
Note these scipts are currently using $stricmp() for string comparison which is case-insensitive. You may use $strcmp() instead which is not.