I'm sure me trying to explain what I'm trying to do is going to confuse me as much as it will you reading it but here goes anyway!
If <album artist> is not equal to <artist> I want to put it in a directory structure thus - !Compilations\<album>
If they are equal I'd like it in a this directory structure - <artist:1>\<artist>\<album>
So for case 2 I'd like to create an additional directory tier but I cant figure out how to do it.
This almost works:
Code: Select all
$If(<Artist>=<Album Artist>,<Artist:1>-<Artist>,!Compilations)\<Album>
except that, as you'd expect, the first letter of the artist name and a hyphen prefix the artist name, i.e. it's not a separate folder.
I expected
Code: Select all
$If(<Artist>=<Album Artist>,<Artist:1>\<Artist>,!Compilations)\<Album>
(all I've done is replaced the - with a \) to do exactly what I wanted but MM seems to become totally confused. The addition of the \ seems to make MM ignore both $If and parse everything before the \ as fields to be in first directory and everything after to be the sub-directory.
e.g. for the album by '12 Stones' called #Anthem for the Underdog'. With code 1 I get:
\1-12 Stones
.....\Anthem for the Underdog
which is what I'd expect.
For the second piece of code I get:
\12 Stones=12 Stones1
.....\12 Stones,!Compilations
which somewhat surprised me.
I obviously misunderstand how this is supposed to work. What am I missing?
Thanks.
Kevin
I'm sure me trying to explain what I'm trying to do is going to confuse me as much as it will you reading it but here goes anyway!
If <album artist> is not equal to <artist> I want to put it in a directory structure thus - !Compilations\<album>
If they are equal I'd like it in a this directory structure - <artist:1>\<artist>\<album>
So for case 2 I'd like to create an additional directory tier but I cant figure out how to do it.
This almost works:
[code]$If(<Artist>=<Album Artist>,<Artist:1>-<Artist>,!Compilations)\<Album>[/code]
except that, as you'd expect, the first letter of the artist name and a hyphen prefix the artist name, i.e. it's not a separate folder.
I expected
[code]$If(<Artist>=<Album Artist>,<Artist:1>\<Artist>,!Compilations)\<Album>[/code]
(all I've done is replaced the - with a \) to do exactly what I wanted but MM seems to become totally confused. The addition of the \ seems to make MM ignore both $If and parse everything before the \ as fields to be in first directory and everything after to be the sub-directory.
e.g. for the album by '12 Stones' called #Anthem for the Underdog'. With code 1 I get:
[color=#0000FF][b]\1-12 Stones
.....\Anthem for the Underdog[/b][/color]
which is what I'd expect.
For the second piece of code I get:
[color=#0000FF][b]\12 Stones=12 Stones1
.....\12 Stones,!Compilations[/b][/color]
which somewhat surprised me.
I obviously misunderstand how this is supposed to work. What am I missing?
Thanks.
Kevin