After I posted this I did some more forum searching and found something that i could adapt and got it to work.
function ifnotempty(value,sep){
return value.length > 0 ? value + sep : ‘’;
}
function ifnotempty2(value1,value2,sep){
return value1.length > 0 ? value1 + sep :value2.length > 0 ? value2 + sep:’’ ;
}
function ifmultidisc(value) {
if(disctotal>1)
{
return value;
}
else
{
return “”;
}
}
ifnotempty2(media,“Unknown”,folderseparator) + ifnotempty2(albumartist,artist,folderseparator) + ifnotempty(album,folderseparator) + ifmultidisc(“Disk “,””) + ifmultidisc(discno,folderseparator)
For anyone else trying to do this