Seems like this should do it (I just removed the MusicBee parts):
$if($in(%artists%,;),$copy(artist,artists),)