# Make %discnumber% blank under Actions

**URL:** <https://community.mp3tag.de/t/make-discnumber-blank-under-actions/44247>\
**Category:** Support\
**Created:** [January 20, 2019, 3:15am UTC](https://community.mp3tag.de/t/make-discnumber-blank-under-actions/44247 "2019-01-20T03:15:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kreginaw](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/b38774/32.png) [@Kreginaw](https://community.mp3tag.de/u/Kreginaw)\
**Post date:** [January 20, 2019, 3:15am UTC](https://community.mp3tag.de/t/make-discnumber-blank-under-actions/44247/1 "2019-01-20T03:15:11Z")

</div>

Long time user, first time poster.

I'm looking to create a formula to force %discnumber% to be blank if the length of discnumber is only 1. The reason I'm looking to do this is because I convert Tag -\> Filename using disc numbers if they exist, otherwise just keep with the album name. That formula is:

$if(%discnumber%,%album% (Disc %discnumber%),%album%)

I already have %discnumber% being formatted from 1/2 to "1 of 2", too. That's automatic. The problem I'm facing is:

$if($len(%discnumber=1),, %discnumber%)

is creating an "empty" box rather than a box. Is there a way to do this so I don't have to worry about accidentally blanking a multi-disc set?

---

<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:** [January 20, 2019, 7:51am UTC](https://community.mp3tag.de/t/make-discnumber-blank-under-actions/44247/2 "2019-01-20T07:51:14Z")

</div>

You'd need to compare the length of the `%discnumber%` using the `$eql()` scripting function. As additional safety measure, I'd directly compare against disc number being "1" and being empty and use this directly in "Tag - Filename":

`$if($or($eql($len(%discnumber%),0),$eql(%discnumber%,1)),%album%,%album% (Disc %discnumber%))`

If you want to go and blank the field if its length is 1 with an action, you'd need to use  
`$if($eql($len(%discnumber%),1),,%discnumber%)`

---

<div class="post-metadata">

**Author:** ![Kreginaw](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/b38774/32.png) [@Kreginaw](https://community.mp3tag.de/u/Kreginaw)\
**Post date:** [January 20, 2019, 3:02pm UTC](https://community.mp3tag.de/t/make-discnumber-blank-under-actions/44247/3 "2019-01-20T15:02:36Z")

</div>

Ah, I was on the right track, just missing a couple of key components. Great, and thanks!

---

<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:27pm UTC](https://community.mp3tag.de/t/make-discnumber-blank-under-actions/44247/4 "2026-02-09T12:27:52Z")

</div>


