# Conditional Formatting for Artist based on Album Artist

**URL:** https://community.mp3tag.de/t/conditional-formatting-for-artist-based-on-album-artist/42230
**Category:** Support
**Created:** [July 8, 2018, 7:09am UTC](https://community.mp3tag.de/t/conditional-formatting-for-artist-based-on-album-artist/42230 "2018-07-08T07:09:22Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [July 8, 2018, 9:07am UTC](https://community.mp3tag.de/t/conditional-formatting-for-artist-based-on-album-artist/42230/2 "2018-07-08T09:07:57Z")

</div>

See the help on scripting and boolean functions

> **[Scripting Functions – Mp3tag Documentation](https://docs.mp3tag.de/scripting/#boolean-functions)**
>
> Documentation on Mp3tag's scripting functions. Mp3tag is the universal Tag Editor.

esp. $if2()

Also see the special function of the square brackets to specify optional output for the filename. eg. in this thread

> [@Renaming](https://community.mp3tag.de/t/renaming/14613/12):
>
> All My files (without exception) have been named after the mask: "%track% - %artist% - (%album% \_ CD %discnumber%) -%year%".

---

_[View the full topic](https://community.mp3tag.de/t/conditional-formatting-for-artist-based-on-album-artist/42230)._
