# Tag Conditional Format

**URL:** <https://community.mp3tag.de/t/tag-conditional-format/14596>\
**Category:** Support\
**Created:** [March 30, 2013, 5:28pm UTC](https://community.mp3tag.de/t/tag-conditional-format/14596 "2013-03-30T17:28:07Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pavlos](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/ac8455/32.png) [@pavlos](https://community.mp3tag.de/u/pavlos)\
**Post date:** [March 30, 2013, 5:28pm UTC](https://community.mp3tag.de/t/tag-conditional-format/14596/1 "2013-03-30T17:28:07Z")

</div>

I need to have an action to conditionally format the ALBUM Tag. This action must search the FILENAME Tag for particular “word/s” and if found then it will fill-in the ALBUM Tag with “specific text”, if not it leaves ALBUM blank.

Regards,

---

<div class="post-metadata">

**Author:** ![pavlos](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/ac8455/32.png) [@pavlos](https://community.mp3tag.de/u/pavlos)\
**Post date:** [March 30, 2013, 6:36pm UTC](https://community.mp3tag.de/t/tag-conditional-format/14596/2 "2013-03-30T18:36:18Z")

</div>

Any hint please?

---

<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:** [March 31, 2013, 10:18am UTC](https://community.mp3tag.de/t/tag-conditional-format/14596/3 "2013-03-31T10:18:03Z")

</div>

You can use the filter to limit the display to just the required files like  
%\_filename% HAS Greatest  
Then modify the album with "specific text".

If you want more specific examples, you would have to be more specific about the input and output conditions.

---

<div class="post-metadata">

**Author:** ![ra7h35m20s](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/779978/32.png) [@ra7h35m20s](https://community.mp3tag.de/u/ra7h35m20s)\
**Post date:** [March 31, 2013, 9:44pm UTC](https://community.mp3tag.de/t/tag-conditional-format/14596/4 "2013-03-31T21:44:48Z")

</div>

Give something like this a try to see if it produces the results you are looking for:

Action: Format Value  
Field: FILENAME  
Format String:  
$if($strcmp(%filename%,'SEARCH CRITERIA'),'TAG FORMAT IF MATCHED',%filename%)

you can increase the amount of search criteria with the $and OR $or functionality

---

<div class="post-metadata">

**Author:** ![pavlos](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/ac8455/32.png) [@pavlos](https://community.mp3tag.de/u/pavlos)\
**Post date:** [April 14, 2013, 5:04pm UTC](https://community.mp3tag.de/t/tag-conditional-format/14596/5 "2013-04-14T17:04:40Z")

</div>

Thanks for the response. I need to modify the above script so that the SEARCH CRITERIA in IF to search only for a particular word instead of the whole text in the tag.

---

<div class="post-metadata">

**Author:** ![pavlos](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/ac8455/32.png) [@pavlos](https://community.mp3tag.de/u/pavlos)\
**Post date:** [April 16, 2013, 6:19pm UTC](https://community.mp3tag.de/t/tag-conditional-format/14596/6 "2013-04-16T18:19:01Z")

</div>

any suggestion how to format ALBUM tag based on searching only for a particular word in FILANAME?

---

<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/tag-conditional-format/14596/7 "2026-02-09T12:24:25Z")

</div>

Closed on February 9, 2026, 12:24pm UTC


