# Trouble with batch adding Tags to Comments field of particular Artists

**URL:** https://community.mp3tag.de/t/trouble-with-batch-adding-tags-to-comments-field-of-particular-artists/69815
**Category:** Support
**Created:** [September 18, 2025, 8:49pm UTC](https://community.mp3tag.de/t/trouble-with-batch-adding-tags-to-comments-field-of-particular-artists/69815 "2025-09-18T20:49:17Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![shaynoUki](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/ba8739/32.png) [@shaynoUki](https://community.mp3tag.de/u/shaynoUki)
#### Post date: [September 18, 2025, 8:49pm UTC](https://community.mp3tag.de/t/trouble-with-batch-adding-tags-to-comments-field-of-particular-artists/69815/1 "2025-09-18T20:49:18Z")

</div>

Hi again, another question please.

I am trying to add multiple tags (sub-genres/moods/styles) into the Comments field of certain Artists. Most of the Collection are single tracks in large directory folders, not separated into Albums, with the Artists scattered all over.  
So i thought something like this might work, and it almost does….

Convert: Tag to Tag, in the Comments field…

`$if$eql(%artist%, (?i)^Massive_Attack$, 'yes') %\_comment%, GROOVY,FUNKY,BRISTOL`

however,in the Comments field, the result is…

$if , GROOVY,FUNKY,BRISTOL

with the added problem that it will give the same result no matter which Artist. ☹

I’m thinking i’m missing some containment characters, or maybe i need some sleep ?

Any assistance would be greatly appreciated.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [September 18, 2025, 8:58pm UTC](https://community.mp3tag.de/t/trouble-with-batch-adding-tags-to-comments-field-of-particular-artists/69815/2 "2025-09-18T20:58:19Z")

</div>

Where did you get that syntax as it does not resemble really that what is used in MP3tag.  
Try  
`$if($eql(%artist%,Massive Attack),%comment%',GROOVY,FUNKY,BRISTOL',%comment%)`

---

<div class="post-metadata">

### Author: ![shaynoUki](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/ba8739/32.png) [@shaynoUki](https://community.mp3tag.de/u/shaynoUki)
#### Post date: [September 19, 2025, 5:09am UTC](https://community.mp3tag.de/t/trouble-with-batch-adding-tags-to-comments-field-of-particular-artists/69815/3 "2025-09-19T05:09:43Z")

</div>

> [@ohrenkino](#):
>
> $if($eql(%artist%,Massive Attack),%comment%',GROOVY,FUNKY,BRISTOL',%comment%)

Thanks for your reply. I found some code on a few pages, and then tried variations of each till i got a result, ( trial and error ), i know, not the best or most efficient method !

The preview panel kept telling me that anything i added after the $if query( ie a bracket )) would be invalid syntax, even though i saw many examples in the discussions.

i also kept returning 2x Massive Attack, which was helped, i think, by this thread…

> [@How to tag "Untitled" tracks](https://community.mp3tag.de/t/how-to-tag-untitled-tracks/14012):
>
> So I have a lot of tracks that are named "Untitled". Lots of electronic releases have songs marked as "Untitled" or "Instrumental" or "Interlude", etc. and there can be many with the same title in the same release. I am looking for a good solution to make these tracks unique so I don't have hundreds of tracks showing up with the same name in my player. MusicBrainz has a standard for naming such tracks: [http://musicbrainz.org/doc/Style/Unknown\_a...ose\_track\_title](http://musicbrainz.org/doc/Style/Unknown_and_untitled/Special_purpose_track_title) They state that untitled shoul…

and a lot of searching and scratching my head later, this was the best i could get. It was late here in Oz so i turned to the experts for help 🙂 thankyou !

Your edit works, however, it still returns a leading comma in the Comments field. How would i fix that ?

Your edit is artist-selective, thank you, that’s what i was trying to achieve.

Now, i’ll find another problematic script to entertain myself for the next few hours 🙂

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [September 19, 2025, 5:52am UTC](https://community.mp3tag.de/t/trouble-with-batch-adding-tags-to-comments-field-of-particular-artists/69815/4 "2025-09-19T05:52:10Z")

</div>

> [@shaynoUki](#):
>
> Your edit works, however, it still returns a leading comma in the Comments field. How would i fix that ?

It is not quite clear to me whether there is already data in the field COMMENT or not.

Actually, I doubt that such an action is the most efficient way. How often in the life of a file will this action need to be applied?  
I would

- sort by the column for artist,
- select all files of an artist and then
- enter the string(s) in the corresponding fields (in the tag panel) and then
- save the modification with Ctrl-S

And even if later you should add further tracks by a particular artist, it would be easier (I think) so filter and sort by the artist and copy such data from the old files to the new ones instead of creating a long list of actions.

> [@shaynoUki](#):
>
> would be invalid syntax

The preview interprets the current string - and "$if(" is invalid as it misses the closing parenthesis and probably the internal structure. You would have to enter the complete string and see what it does.

---

<div class="post-metadata">

### Author: ![shaynoUki](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/ba8739/32.png) [@shaynoUki](https://community.mp3tag.de/u/shaynoUki)
#### Post date: [September 19, 2025, 6:23am UTC](https://community.mp3tag.de/t/trouble-with-batch-adding-tags-to-comments-field-of-particular-artists/69815/5 "2025-09-19T06:23:58Z")

</div>

Thanks again,

yes, i agree, sorting would be easier. i really only discovered the sorting field last night ( was concentrating on the learning the top file options )

and yes, that’s what i thought the syntax error was coming from, later, on reflection 🙂

that’s ok, it’s been a nice learning experiment 🙂

thanks again.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [September 19, 2025, 6:27am UTC](https://community.mp3tag.de/t/trouble-with-batch-adding-tags-to-comments-field-of-particular-artists/69815/6 "2025-09-19T06:27:11Z")

</div>

> [@shaynoUki](#):
>
> i really only discovered the sorting field last night

To sort by the contents of a column, simply click on the column header.

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [October 19, 2025, 6:27am UTC](https://community.mp3tag.de/t/trouble-with-batch-adding-tags-to-comments-field-of-particular-artists/69815/7 "2025-10-19T06:27:20Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
