How do I make a conditional mask?

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: How do I make a conditional mask?

Re: How do I make a conditional mask?

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

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.

How do I make a conditional mask?

by chrisdukes » Mon Apr 27, 2015 5:48 pm

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

Top