# Request: Conditional Actions

**URL:** https://community.mp3tag.de/t/request-conditional-actions/2394
**Category:** General Discussion
**Created:** [October 23, 2005, 5:51am UTC](https://community.mp3tag.de/t/request-conditional-actions/2394 "2005-10-23T05:51:23Z")
**Posts on this page:** 1
**Showing post:** 1

<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: [October 23, 2005, 5:51am UTC](https://community.mp3tag.de/t/request-conditional-actions/2394/1 "2005-10-23T05:51:23Z")

</div>

I have a number of Actions defined that I'd like to be able to use on different kinds of files - mp3, flac, ape, ogg, etc.

Unfortunately, the tag names differ in the different file types. Using the suggestion of someone in these forums, I have some Actions defined with a series of rules like the following:

Format value "ALBUMSORT": $if($eql(%\_extension%,flac),%tmp\_artistsort%|%year%|%tmp\_albumsort%,)

Format value "TSOA": $if($eql(%\_extension%,mp3),%tmp\_artistsort%|%year%|%tmp\_albumsort%,)

It sure would make life easier if there where some type of mechanism where the field name itself could be variable, based upon the file type (or the extension). If this capability exists now, or if there's a way to do the above example with a single rule, then I'd love to hear about it.

---

_[View the full topic](https://community.mp3tag.de/t/request-conditional-actions/2394)._
