# Custom action to set TCMP field according to Album artist

**URL:** <https://community.mp3tag.de/t/custom-action-to-set-tcmp-field-according-to-album-artist/48978>\
**Category:** Support\
**Created:** [May 17, 2020, 11:01am UTC](https://community.mp3tag.de/t/custom-action-to-set-tcmp-field-according-to-album-artist/48978 "2020-05-17T11:01:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Etz](https://community.mp3tag.de/user_avatar/community.mp3tag.de/etz/32/7648_2.png) [@Etz](https://community.mp3tag.de/u/Etz)\
**Post date:** [May 17, 2020, 11:01am UTC](https://community.mp3tag.de/t/custom-action-to-set-tcmp-field-according-to-album-artist/48978/1 "2020-05-17T11:01:31Z")

</div>

It has been a while I created my last conditional action, so I’m a bit struggling again.

How to set COMPILATION tag to 1 if ALBUMARTIST=“Various Artists” and delete COMPILATION field (or should it be set to 0?) if ALBUMARTIST is something else.

Any help would be 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:** [May 17, 2020, 11:35am UTC](https://community.mp3tag.de/t/custom-action-to-set-tcmp-field-according-to-album-artist/48978/2 "2020-05-17T11:35:30Z")

</div>

> [@Etz](#):
>
> How to set COMPILATION tag to 1 if ALBUMARTIST=“Various Artists” and delete COMPILATION field (or should it be set to 0?) if ALBUMARTIST is something else.

This could be an action of the type "Format value" for COMPILATION  
Format string: `$if($eql(%albumartist%,'Various Artists'),1,)`

---

<div class="post-metadata">

**Author:** ![Etz](https://community.mp3tag.de/user_avatar/community.mp3tag.de/etz/32/7648_2.png) [@Etz](https://community.mp3tag.de/u/Etz)\
**Post date:** [May 17, 2020, 11:51am UTC](https://community.mp3tag.de/t/custom-action-to-set-tcmp-field-according-to-album-artist/48978/3 "2020-05-17T11:51:47Z")

</div>

Thank you, again... 😃

---

<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:** [June 16, 2020, 12:00pm UTC](https://community.mp3tag.de/t/custom-action-to-set-tcmp-field-according-to-album-artist/48978/4 "2020-06-16T12:00:35Z")

</div>

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