# How to Use "Actions"

**URL:** https://community.mp3tag.de/t/how-to-use-actions/11501
**Category:** Support
**Created:** [January 25, 2011, 1:07pm UTC](https://community.mp3tag.de/t/how-to-use-actions/11501 "2011-01-25T13:07:16Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![r2sd](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/eb9ed0/32.png) [@r2sd](https://community.mp3tag.de/u/r2sd)
#### Post date: [January 25, 2011, 1:07pm UTC](https://community.mp3tag.de/t/how-to-use-actions/11501/1 "2011-01-25T13:07:16Z")

</div>

Haaaa,I Need Some Real Help  
For Example,I Have 2 Files with Tags:  
File 1:

```
 Composer -Joe
 Artist -Roe

```

File 2:

```
 Composer-<u>Does Not Exist</u>
 Artist - Jack

```

Now I want to bring the tags to COMMENT(Tag Field) such that COMPOSER\*|\*ARTIST  
I Did that.The Result:  
File 1:

```
 Composer -Joe
 Artist -Roe
 Comment -Joe*|*Roe

```

File 2:

```
 Composer-Does Not Exist
 Artist - Jack
 Comment -*|*Jack

```

The First File Is Fine,My Problem is in the second file,since there is no composer field in it,it simple came as Comment -_|Jack, Since it doesn't have the composer field There Is An Unnecessary "|_" In The Tag Field.How Do I Stop This,That Is,Create "_|_" Only In Files That Have The Composer Field,The Files That Don't have the composer field Should be simple have the artist tag alone.

---

<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: [January 25, 2011, 1:41pm UTC](https://community.mp3tag.de/t/how-to-use-actions/11501/2 "2011-01-25T13:41:23Z")

</div>

> [@r2sd](#):
>
> ... The Files That Don't have the composer field Should be simple have the artist tag alone.

You could filter you files first before you apply your action  
NOT %composer% IS "" AND NOT %artist% IS ""

Or you could add a "Replace with regular expression" action that removes the superfluous characters at the beginning of the comment field  
tag: comment  
search: ^\*|\*  
replace:  
(leave replace empty)

Just one more note: using these special characters asterisk and bar makes it rather difficult to process the comment field afterwards as they have special meanings in mp3tag's command language  
Also, if you ever intend to incorporate the comment tag in your filename, the special characters will be ommitted as they are not allowed as characters for filenames. It might be a good idea to think of other separators between the two pieces of data.

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [January 25, 2011, 2:57pm UTC](https://community.mp3tag.de/t/how-to-use-actions/11501/3 "2011-01-25T14:57:57Z")

</div>

> [@r2sd](#):
>
> ... I want to bring the tags to COMMENT(Tag Field) such that COMPOSER\*|\*ARTIST  
> I Did that.The Result:  
> File 1:
> 
> ```
> Composer -Joe
> Artist -Roe
> Comment -Joe*|*Roe
> 
> ```
> 
> File 2:
> 
> ```
> Composer-Does Not Exist
> Artist - Jack
> Comment -*|*Jack
> 
> ```
> 
> The First File Is Fine,My Problem is in the second file,since there is no composer field in it,it simple came as Comment -_|Jack, Since it doesn't have the composer field There Is An Unnecessary "|_" In The Tag Field.How Do I Stop This,That Is,Create "_|_" Only In Files That Have The Composer Field,The Files That Don't have the composer field Should be simple have the artist tag alone.

You should take into account what ohrenkino said :  
"It might be a good idea to think of other separators between the two pieces of data."

Action: Format value  
Field : COMMENT  
Formatstring:

**$if($and(%ARTIST%,%COMPOSER%),%ARTIST%'+#+'%COMPOSER%,$if2(%COMPOSER%,%ARTIST%))** 

 

DD.20110125.1658.CET

---

<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: [February 9, 2026, 12:22pm UTC](https://community.mp3tag.de/t/how-to-use-actions/11501/4 "2026-02-09T12:22:52Z")

</div>


