# Conditional block

**URL:** https://community.mp3tag.de/t/conditional-block/15045
**Category:** Support
**Created:** [September 17, 2013, 8:05pm UTC](https://community.mp3tag.de/t/conditional-block/15045 "2013-09-17T20:05:14Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![chrisjj](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@chrisjj](https://community.mp3tag.de/u/chrisjj)
#### Post date: [September 17, 2013, 8:05pm UTC](https://community.mp3tag.de/t/conditional-block/15045/1 "2013-09-17T20:05:14Z")

</div>

Is there any trick to make multiple actions conditional on a single test? E.g. the highlighted block here, where the same test is repeated in each action expression:

![](http://img812.imageshack.us/img812/5848/nfap.png)

Any other suggestions to simplify this code are welcome too. Thanks.

---

<div class="post-metadata">

### Author: ![JJ\_Johnson](https://community.mp3tag.de/user_avatar/community.mp3tag.de/jj_johnson/32/67_2.png) [@JJ\_Johnson](https://community.mp3tag.de/u/JJ_Johnson)
#### Post date: [September 18, 2013, 1:51am UTC](https://community.mp3tag.de/t/conditional-block/15045/2 "2013-09-18T01:51:19Z")

</div>

Not that I'm aware of. I've suggest this several times in the past. Even a way to break out of an action group would be welcome and could be used to conditionally execute either the whole group or the remaining actions within the group.

Similarly, I have a set of actions that are all conditional upon the file type/extension. My MP3 files are only loaded on my portable players, which have simpler tag recognition than my normal player at home for FLAC files. So the MP3 files have some fields removed and some fields formatted a little differently. Basically, there are two ways to do that: either create an 'MP3' action group and tick the checkbox when executing a set of action groups on MP3 files, or else grind it out and include the conditional in every one of a bunch of Format Value actions. I chose the latter method, then I don't have to worry about what type of file I'm working on.

---

<div class="post-metadata">

### Author: ![chrisjj](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@chrisjj](https://community.mp3tag.de/u/chrisjj)
#### Post date: [September 18, 2013, 8:44am UTC](https://community.mp3tag.de/t/conditional-block/15045/3 "2013-09-18T08:44:17Z")

</div>

Thanks JJ.

---

<div class="post-metadata">

### Author: ![chrisjj](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@chrisjj](https://community.mp3tag.de/u/chrisjj)
#### Post date: [August 13, 2014, 10:25am UTC](https://community.mp3tag.de/t/conditional-block/15045/4 "2014-08-13T10:25:29Z")

</div>

> [@JJ Johnson](#):
>
> Even a way to break out of an action group would be welcome and could be used to conditionally execute either the whole group or the remaining actions within the group.

I'm increasingly feeling the need for that. I'll post the wish separately, so Florian is sure to see it 🙂

---

<div class="post-metadata">

### Author: ![chrisjj](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@chrisjj](https://community.mp3tag.de/u/chrisjj)
#### Post date: [August 28, 2014, 11:37pm UTC](https://community.mp3tag.de/t/conditional-block/15045/5 "2014-08-28T23:37:02Z")

</div>

PS One shortcoming of the above technique is that operations 'excluded' by the conditional set Date Modified regardless.

---

<div class="post-metadata">

### Author: ![Nature](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/n/a587f6/32.png) [@Nature](https://community.mp3tag.de/u/Nature)
#### Post date: [December 18, 2014, 2:04pm UTC](https://community.mp3tag.de/t/conditional-block/15045/6 "2014-12-18T14:04:07Z")

</div>

I quite agree with this!  
Count me in.

I already gave my opinion about this on the other thread, so I'm not going to repeat myself, but you can check it at:  
[Wish: a way to break out of an action group](https://community.mp3tag.de/t/16000/1)

---

<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:24pm UTC](https://community.mp3tag.de/t/conditional-block/15045/7 "2026-02-09T12:24:40Z")

</div>


