Changing text in one field if another contains certain phrase or number

I looking for a way to make an IF statement of sorts when tagging
Want it so IF Compilation field = 1 THEN AlbumArtist = #Various Artists#

Is this possible?

Cheers in advance


Just replace VA with what you need (I think it's #Various Artists#): Why do you need the # at the end?

Use format in tag-tag for single use or create an action with format:
Format string: $if($eql(%compilation%,1),VA,)

NB: This leaves the ALBUM ARTIST field empty if COMPILATION value is not 1.

To get around that use:
Format string: $if($eql(%compilation%,1),VA,%albumartist%)

Sweet! I'll try that on the morrow. Let you know how it turns out.

To answer your earlier question, I have the second # there for nothing other than aesthetics :wink:

Your string worked for me with some slight tweaking...

$if($eql(%compilation%,1),#Various Artists#,%artist%)

Thanks for this,


Oh, just thought it might not sort how you want it in your music player. No problem.

Its more for when sorting on my machine. keeps all the compilations together at he top of the list.

Could that be modified to something like...
IF %title% contains (feat. *) or [feat. *] then move and append the 'feat. *' minus the () or [] to %artist%


IF %title% contains (* Remix|Mix|Edit|Version|Dub) or [* Remix|Mix|Edit|Version|Dub] then change () or [] to «» and copy the contents of «» to %subtitle%

  • denotes a wildcard expression, in this case, the name of the version eg. Radio Edit or Extended Version... and. can contain one or more words.

If you are sure that the brackets always enclose the wanted text and are not used for something else, you may create an action group with these action:
one of the type "Guess value" (import tag field) for TITLE
Enter as guessing pattern: %title% (feat. %feat_artist%)
one of the type "Guess value" (import tag field) for TITLE
Enter as guessing pattern: %title% [feat. %feat_artist%]
now one of the type "Format tag field" for ARTIST
Enter as format string: %artist% feat. %feat_artist%
and finally "Remove tag field" for FEAT_ARTIST

You should think about using a filter to group the data.

THat is working except, when the TITLE contains "Clarity (feat. Foxes) [Zedd Union Mix]", the ARTIST results in "Zedd feat. "

Then you must have done something wrong as that pattern is not matched by any of the "Import tag field" actions. So the field feat_artist will not be created.