In the script I have:
$noop(########## DETECT MUSIC TYPE ###############################)
$noop(★ Detect Artist Compilation ★)
$if($in(%releasetype%,compilation),
$set(_isArtistCompil,1)
)
$noop(★ Detect Various Artist ★)
$if($eq(%albumartist%,Various Artists),
$set(_isVarious,1)
)
$noop(★ Re-detect Compilation ★)
$if($eq(%compilation%,1),
$set(_isGlobalCompil,1)
)
Is it a compilation? Yes. then (%_isArtistCompil%,1)
AND is %albumartist% equal to “Various Artists”, then make (%_isGlobalCompil%,1)
else
Do nothing( in effect, the result would be(%_isGlobalCompil%,0)
Later in the script I have:
$noop(★ Organize by type ★)
$if($eq(%_separateByTypeInArtistFolder%,1),
$if((%_isGlobalCompil%,0),%_compilationsSubFolder%,))
**(Otherwise I want to NOT echo %_compilationsSubFolder% )**
$if($eq(%_isLive%,1),%_liveSubFolder%,
$if($eq(%_isAlbum%,1),
$if($eq(%_separateAlbum%,1),%_albumSubFolder%)
$if($eq(%_isSingle%,1),%_singlesSubFolder%)
$if($eq(%_isEP%,1),%_epSubFolder%)
$if($eq(%_isBroadcast%,1),%_broadcastSubFolder%)
$if($eq(%_isVideo%,1),%_videoSubFolder%)
$if($eq(%_isOther%,1),%_otherSubFolder%)
)
)
)
)
)
This is to put a Various Artist compilation in: /3TB/MBP Sorted//Compilation/
…and an Artist Specific compilation in: /3TB/MBP Sorted/Artist/Album/Compilation/