# Flush discnumber if and only if is 1/1 01/01 01/1 1/01

**URL:** https://community.mp3tag.de/t/flush-discnumber-if-and-only-if-is-1-1-01-01-01-1-1-01/54033
**Category:** Mac
**Created:** [August 12, 2021, 6:18am UTC](https://community.mp3tag.de/t/flush-discnumber-if-and-only-if-is-1-1-01-01-01-1-1-01/54033 "2021-08-12T06:18:25Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![gval](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/g/5f8ce5/32.png) [@gval](https://community.mp3tag.de/u/gval)
#### Post date: [August 12, 2021, 6:18am UTC](https://community.mp3tag.de/t/flush-discnumber-if-and-only-if-is-1-1-01-01-01-1-1-01/54033/1 "2021-08-12T06:18:25Z")

</div>

Hello I would remove disencumber metadata for every item who have only one disc

I tried

$if($eql(%DISCNUMBER%,1/1),,%DISCNUMBER%) and $if($eql($len(%discnumber%),1),,%discnumber%)

but it does not work, also it create a space, i would have 0 byte of data on this field in this case,

thank you for your assistance

---

<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: [August 12, 2021, 7:36am UTC](https://community.mp3tag.de/t/flush-discnumber-if-and-only-if-is-1-1-01-01-01-1-1-01/54033/2 "2021-08-12T07:36:44Z")

</div>

You could try an action of the type "Format value"  
Format string:`$replace(%discnumber%,01/01,,01/1,,1/01,,1/1,)`  
I see problems, though for files that are disc number 01 of 10 (11, 12 etc) as "01/1" matches that. The same problem arises for 1/1.

---

<div class="post-metadata">

### Author: ![gval](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/g/5f8ce5/32.png) [@gval](https://community.mp3tag.de/u/gval)
#### Post date: [August 12, 2021, 1:00pm UTC](https://community.mp3tag.de/t/flush-discnumber-if-and-only-if-is-1-1-01-01-01-1-1-01/54033/3 "2021-08-12T13:00:01Z")

</div>

Thank you, this recommandation only replace 1/1 by 1, my problem is that I don't want a discncumber If there is only one disc then written 1/1 OR 01/01 OR 1 OR 1/01 OR 01/1, I need two actions ?

---

<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: [August 12, 2021, 1:23pm UTC](https://community.mp3tag.de/t/flush-discnumber-if-and-only-if-is-1-1-01-01-01-1-1-01/54033/4 "2021-08-12T13:23:34Z")

</div>

I corrected my original post and removed the typo - could you check again, please?

---

<div class="post-metadata">

### Author: ![gval](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/g/5f8ce5/32.png) [@gval](https://community.mp3tag.de/u/gval)
#### Post date: [August 12, 2021, 1:40pm UTC](https://community.mp3tag.de/t/flush-discnumber-if-and-only-if-is-1-1-01-01-01-1-1-01/54033/5 "2021-08-12T13:40:19Z")

</div>

Perfect 🙂👌 , really good
