# Conditional Move action

**URL:** https://community.mp3tag.de/t/conditional-move-action/4200
**Category:** Support
**Created:** [December 19, 2006, 9:29am UTC](https://community.mp3tag.de/t/conditional-move-action/4200 "2006-12-19T09:29:05Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Tradewind25](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/dc4da7/32.png) [@Tradewind25](https://community.mp3tag.de/u/Tradewind25)
#### Post date: [December 19, 2006, 9:29am UTC](https://community.mp3tag.de/t/conditional-move-action/4200/1 "2006-12-19T09:29:05Z")

</div>

Hi,

Q: Can I make an action group conditional upon the current value of a tag field?

# Requirement

I wish to eliminate a tag field but to archive it in case of future need.  
So far I have constructed an action group consisting of:  
Guess values "%comment itunnorm%":%mixartist%  
Remove fields "COMMENT ITUNNORM"

This works fine. It deletes the data in the "COMMENT ITUNNORM" field after copying it to the MIXARTIST field (which I do not use). However, given that I need to do this to every track in my library, and to all subsequent tracks that I add, it gives me a control problem. i.e. if I accidentally rerun this action group on a track already processed then I will lose the data (COMMENT ITUNNORM) that I am trying to archive.  
The most obvious way around this would be to make the action group conditional upon the value of "COMMENT ITUNNORM" not being null.

# Background

iTunes generates "Sound Check" data for tracks that it rips, whether or not you wish to make use of it. I have found that iTunes is generating some very odd values that are leading to very large volume differences upon playback (I actually play tracks via "SlimServer" which also uses this data). I don't believe that I will ever need this data (which iTunes stores in the ITUNNORM tag field) but don't wish to eliminate it entirely from thousands of tracks in case in proves of some value at a later date.  
(NB iTunes also has an alternative volume adjustment feature which I intend to use in preference to this SoundCheck 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: [December 19, 2006, 12:50pm UTC](https://community.mp3tag.de/t/conditional-move-action/4200/2 "2006-12-19T12:50:30Z")

</div>

> [@Geoff J](#):
>
> ... Can I make an action group conditional upon the current value of a tag field? ... if I accidentally rerun this action group on a track already processed then I will lose the data ...

Sometimes I fill CDDBID with data from DISCID, but only if DISCID contains some data.  
If there is no DISCID data, then CDDBID remains unchanged.

_Action type:_ **Format value**  
_Field:_ **CDDBID**  
_Formatstring:_ **$if($grtr(%DISCID%,),%DISCID%,%CDDBID%)**

You may use this as an example and adapt it to your needs.

DD.20061219.1500

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [December 19, 2006, 3:18pm UTC](https://community.mp3tag.de/t/conditional-move-action/4200/3 "2006-12-19T15:18:27Z")

</div>

Just a note:  
$grtr() is not needed.  
$if(%DISCID%,%DISCID%,%CDDBID%) has the same result.

---

<div class="post-metadata">

### Author: ![Tradewind25](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/dc4da7/32.png) [@Tradewind25](https://community.mp3tag.de/u/Tradewind25)
#### Post date: [December 19, 2006, 6:46pm UTC](https://community.mp3tag.de/t/conditional-move-action/4200/4 "2006-12-19T18:46:14Z")

</div>

Many thanks, guys. 🙂

Just for completeness (especially for anyone reading this post in furure) these are the action groups that I now have:

**1. "Archive ITUNNORM"**  
1.1 _Action type:_ Format value

```
 <i>Field: </i> MIXARTIST
 <i>Formatstring:</i> $if(%comment itunnorm%,%comment itunnorm%,%mixartist%)

```

1.2 _Action type:_ Remove Fields

```
 <i>Field: </i> COMMENT ITUNNORM 

```

**2. "Restore ITUNNORM"**  
2.1 _Action type:_ Format value

```
 <i>Field: </i> COMMENT ITUNNORM 
 <i>Formatstring:</i> $if(%mixartist%,%mixartist%,%comment itunnorm%)

```

2.2 _Action type:_ Remove Fields  
_Field:_ MIXARTIST

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [December 20, 2006, 1:03pm UTC](https://community.mp3tag.de/t/conditional-move-action/4200/5 "2006-12-20T13:03:17Z")

</div>

Oh, you could even use $if2(%comment itunnorm%,%mixartist%)  
It's the same as $if(%comment itunnorm%,%comment itunnorm%,%mixartist%)

About Sound check values:  
I don't really think they are worth keeping.  
If you ever want to bring your music to the same volume, you should use replaygain. It's more accurate and also offers album gain.

And if you ever need Sound check values, you can use Mp3tag to fill the sound check tags with the more accurate replaygain volumes.

---

<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:20pm UTC](https://community.mp3tag.de/t/conditional-move-action/4200/6 "2026-02-09T12:20:03Z")

</div>


