# Multi condition IF

**URL:** https://community.mp3tag.de/t/multi-condition-if/54038
**Category:** Support
**Created:** [August 12, 2021, 8:37am UTC](https://community.mp3tag.de/t/multi-condition-if/54038 "2021-08-12T08:37:57Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Nicky\_G](https://community.mp3tag.de/user_avatar/community.mp3tag.de/nicky_g/32/9541_2.png) [@Nicky\_G](https://community.mp3tag.de/u/Nicky_G)
#### Post date: [August 12, 2021, 8:37am UTC](https://community.mp3tag.de/t/multi-condition-if/54038/1 "2021-08-12T08:37:57Z")

</div>

how could I create a multi function if () pretty much like this ...

garment value: 01, 02, 03 ... 12

If the "value field" equals 01, replace me with January  
if 02 February

01 January  
02 February  
03 March  
...  
December 12

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [August 12, 2021, 9:10am UTC](https://community.mp3tag.de/t/multi-condition-if/54038/2 "2021-08-12T09:10:59Z")

</div>

Something like  
`$replace("your value field",'01','January','02','February','03','March', ... ,'12','December')`

Please see details here: [Scripting Functions – Mp3tag Documentation](https://docs.mp3tag.de/scripting/#string-functions)

---

<div class="post-metadata">

### Author: ![Nicky\_G](https://community.mp3tag.de/user_avatar/community.mp3tag.de/nicky_g/32/9541_2.png) [@Nicky\_G](https://community.mp3tag.de/u/Nicky_G)
#### Post date: [August 12, 2021, 10:10am UTC](https://community.mp3tag.de/t/multi-condition-if/54038/3 "2021-08-12T10:10:21Z")

</div>

yes the concept is this, but in practice how do I apply it ...

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [August 12, 2021, 11:05am UTC](https://community.mp3tag.de/t/multi-condition-if/54038/4 "2021-08-12T11:05:48Z")

</div>

For which specific tag (like `%album%` or `%title%`) do you want this [Action](https://docs.mp3tag.de/actions)?

Please show us a real example from your collection where you want to replace the number by month name.

---

<div class="post-metadata">

### Author: ![Nicky\_G](https://community.mp3tag.de/user_avatar/community.mp3tag.de/nicky_g/32/9541_2.png) [@Nicky\_G](https://community.mp3tag.de/u/Nicky_G)
#### Post date: [August 12, 2021, 12:21pm UTC](https://community.mp3tag.de/t/multi-condition-if/54038/5 "2021-08-12T12:21:57Z")

</div>

OK  
I have the "date" field which has 4 digits - ddmm-  
example date = 2311

I would like the month written to generate me in the% copyright% field  
2311 = November 23

"copyrigth" field = November (11 = November)

I currently generate the complete date from the date and year fields  
"23-11-2021"

I would like to manage the month number in text format, or just assign the month name in another empty field.

I think I can adapt the script I already did, I just need to figure out how to implement a $ if () function to be able to manage reference key = value (01 = January)

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [August 12, 2021, 12:41pm UTC](https://community.mp3tag.de/t/multi-condition-if/54038/6 "2021-08-12T12:41:58Z")

</div>

> [@Nicky\_G](#):
>
> I would like the month written to generate me in the% copyright% field  
> 2311 = November 23

I would solve it like this:  
1.) Use Convert Tag -\> Tag with

 ![image](https://community.mp3tag.de/uploads/default/original/2X/d/dfcc40bd0b53bfd2670d99bb9a7a01f8f9a31df2.png)

This will replace the right two numbers from the %DATE% to the written month name and then adds the left two numbers from the %DATE% at the end ot the month name, separated with a space.

Please complete all 12 possible month numbers and names in the format string.

This only works if your days and the month are always saved in the format DDMM in %DATE%.

As always: Please backup your tracks before you test and check this conversion.

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [August 12, 2021, 2:13pm UTC](https://community.mp3tag.de/t/multi-condition-if/54038/7 "2021-08-12T14:13:31Z")

</div>

4 posts were split to a new topic: [Make tag fields readable by Windows Explorer](https://community.mp3tag.de/t/make-tag-fields-readable-by-windows-explorer/54043)

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [August 12, 2021, 2:14pm UTC](https://community.mp3tag.de/t/multi-condition-if/54038/8 "2021-08-12T14:14:35Z")

</div>

I've moved the posts covering a new topic to a separate topic. Please try to stay at one overall theme per topic and create new topics where appropriate.

---

<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:29pm UTC](https://community.mp3tag.de/t/multi-condition-if/54038/10 "2026-02-09T12:29:21Z")

</div>


