Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Album list. Use custom field if exists or use standard field (Read 339 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Album list. Use custom field if exists or use standard field

Hi,
I have added a custom field called 'Album Year'. The reason for this is because some compilation albums have different years per track and foobar will split them up. I want to group them all together in the Album List.
So I started with this
%<album artist>%|[%album year% - ]%album%|[[%discnumber%.]%tracknumber%.][%track artist% -]%title%|

This works to a point. It shows %album year% if the tag exists.
However what I want is that if the tag does not exist to show %year% instead.

I tried this   $or(%album year%,%year%)
Thinking it would show 'year' if 'album year' did not exist.

However it didn't work and didn't show anything.

Any Help would be appreciated.

Asimov

 

Re: Album list. Use custom field if exists or use standard field

Reply #1
$if2(%album year%,%year%)



MOD edit: direct reply, removed unnecessary FULL quote.