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: How do you count if there's more than one type of tag? (Read 850 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

How do you count if there's more than one type of tag?

Hi,

I'm trying to get foobar2000 to use a specific seperator if there's more than one tag type present. Does anyone know if this is possible to do?

In pseudocode, I'm after:

Code: [Select]
IF MORE THAN ONE OF [COMPOSER, PERFORMER, REMIXER] EXISTS THEN DISPLAY ALL WITH '-' AS A SEPERATOR, ELSE [%COMPOSER%][%PERFORMER%][%REMIXER%] 

Hopefully that makes sense. Thanks!  :D

Re: How do you count if there's more than one type of tag?

Reply #1
I think it would be something like this (not tested):

Code: [Select]
$if($and(%composer%,%performer%,%remixer%),true,false)

Note, this is when all 3 are present. If you want to include combos with two you'd have to use $or and the thing will get really long. Perhaps someone knows a better way.

 

Re: How do you count if there's more than one type of tag?

Reply #2
I usually do it like this:

Code: [Select]
$stripprefix([%COMPOSER%][ - %PERFORMER%][ - %REMIXER%], -)
I'm late