Page 1 of 1

How do I make a conditional mask?

Posted: Mon Apr 27, 2015 5:48 pm
by chrisdukes
I want to make a mask that moves and names files depending on which grouping they're in. All of my music is in 1 of 5 groupings: Album, Compilation, EP, Live, or Mix. So, I guess the mask should look something like this:

F:\Music\<Genre>\<Album Artist>\<Grouping>\(<Album> OR (<Artist> - <Album>))\<Track#> - <Title>

Album, EP, and Live all get (<Artist> - <Album>) for their music folder. Compilation and Mix just gets <Album>. I know I should be using an $if to make the mask conditional, I think, but I can't figure out the right way.
Also, links to tutorials are greatly appreciated I have been using these 2:

http://www.mediamonkey.com/wiki/index.p ... ormats/4.0
http://www.mediamonkey.com/wiki/index.p ... escription

Re: How do I make a conditional mask?

Posted: Mon Apr 27, 2015 8:18 pm
by Mizery_Made

Code: Select all

$if(<grouping>=Mix,<Album>,$if(<grouping>=Compilation,<Album>,<Artist> - <Album>))
With this, it will check if the Grouping equals Mix, if it does then it will add <Album>
If it doesn't match, then it will check if Grouping equals Compilation. If it does, it adds <Album>
If neither of those conditions match, then it will add <Artist> - <Album>, this catching Album, EP and Live.