# Disc Number Empty Value

**URL:** <https://community.mp3tag.de/t/disc-number-empty-value/18484>\
**Category:** Support\
**Created:** [December 3, 2016, 1:47pm UTC](https://community.mp3tag.de/t/disc-number-empty-value/18484 "2016-12-03T13:47:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SyphonX](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/a698b9/32.png) [@SyphonX](https://community.mp3tag.de/u/SyphonX)\
**Post date:** [December 3, 2016, 1:47pm UTC](https://community.mp3tag.de/t/disc-number-empty-value/18484/1 "2016-12-03T13:47:24Z")

</div>

So I remove the disc number from any album with only one disc, but when there is more than one disc I have subfolders in the album folder for each disc, eg Disc 1, Disc 2 etc.

I am using the following rename string:  
%artist%'['%year%']' %album% \Disc %discnumber%$num(%track%,2). %title%

Problem is is that when the disc number field is empty a Disc folder is still created, what can I add to the string so that no disc folder is created when that value is empty?

---

<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:** [December 3, 2016, 2:43pm UTC](https://community.mp3tag.de/t/disc-number-empty-value/18484/2 "2016-12-03T14:43:14Z")

</div>

> [@SyphonX](#):
>
> ...  
> I am using the following rename string:  
> %artist%'['%year%']' %album% \Disc %discnumber%$num(%track%,2). %title%  
> ...what can I add to the string so that no disc folder is created when that value is empty?

Modify your string to  
%artist%'['%year%']' %album% [\Disc %discnumber%]$num(%track%,2). %title%

the work as some kind of "if" operator. Only if there is a value in %discnumber% the statement inside the is executed.

---

<div class="post-metadata">

**Author:** ![SyphonX](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/a698b9/32.png) [@SyphonX](https://community.mp3tag.de/u/SyphonX)\
**Post date:** [December 3, 2016, 5:37pm UTC](https://community.mp3tag.de/t/disc-number-empty-value/18484/3 "2016-12-03T17:37:58Z")

</div>

> [@ohrenkino](#):
>
> Modify your string to  
> %artist%'['%year%']' %album% [\Disc %discnumber%]$num(%track%,2). %title%
> 
> the work as some kind of "if" operator. Only if there is a value in %discnumber% the statement inside the is executed.

Ah thank you so much, works perfectly! 🙂

---

<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:26pm UTC](https://community.mp3tag.de/t/disc-number-empty-value/18484/4 "2026-02-09T12:26:33Z")

</div>


