# help with conditional copy %track% to %discnumber%

**URL:** <https://community.mp3tag.de/t/help-with-conditional-copy-track-to-discnumber/14477>\
**Category:** Support\
**Created:** [February 22, 2013, 8:33pm UTC](https://community.mp3tag.de/t/help-with-conditional-copy-track-to-discnumber/14477 "2013-02-22T20:33:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![abijahmaniaco](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/5fc32e/32.png) [@abijahmaniaco](https://community.mp3tag.de/u/abijahmaniaco)\
**Post date:** [February 22, 2013, 8:33pm UTC](https://community.mp3tag.de/t/help-with-conditional-copy-track-to-discnumber/14477/1 "2013-02-22T20:33:16Z")

</div>

here's what i'm trying to accomplish:

if %track% contains "-" then i want to copy %track% to %discnumber%

for example, many tracks are numbered like this:  
1-01  
1-02  
1-03  
etc...

any help would be greatly appreciated, i'm sure this is simple, i'm just having trouble figuring it out on my own. thanks

---

<div class="post-metadata">

**Author:** ![abijahmaniaco](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/5fc32e/32.png) [@abijahmaniaco](https://community.mp3tag.de/u/abijahmaniaco)\
**Post date:** [February 22, 2013, 8:46pm UTC](https://community.mp3tag.de/t/help-with-conditional-copy-track-to-discnumber/14477/2 "2013-02-22T20:46:48Z")

</div>

i seem to have accomplished it with with the following "guess value action"

Source format  
%track%

Guessing pattern  
%discnumber%-%track%

alternative methods to accomplish it still welcome

---

<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:** [February 22, 2013, 8:48pm UTC](https://community.mp3tag.de/t/help-with-conditional-copy-track-to-discnumber/14477/3 "2013-02-22T20:48:35Z")

</div>

> [@abijahmaniaco](#):
>
> ...if %track% contains "-" then i want to copy %track% to %discnumber%

Do you really want to copy the whole of TRACK into DISCNUMBER? Or just the leading "1"?  
Anyway: it would be easiest to apply a filter like  
%track% HAS "-"  
If you then want to split the field then an action of the type "Import tag-field (guess values)" for TRACK and the mask  
%discnumber%-%track%  
would move the 1 (or any other number in front of the hyphen) to DISCNUMBER.

If you only want to copy then run a simple "Format tag-field" action for DISCNUMBER with the format string %track%

---

<div class="post-metadata">

**Author:** ![abijahmaniaco](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/a/5fc32e/32.png) [@abijahmaniaco](https://community.mp3tag.de/u/abijahmaniaco)\
**Post date:** [February 22, 2013, 8:55pm UTC](https://community.mp3tag.de/t/help-with-conditional-copy-track-to-discnumber/14477/4 "2013-02-22T20:55:25Z")

</div>

> [@ohrenkino](#):
>
> Do you really want to copy the whole of TRACK into DISCNUMBER? Or just the leading "1"?

well, yes, just the leading "1", but for simplicity i figured i could clean it up after the copy using "replace with regular expression"

---

<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:24pm UTC](https://community.mp3tag.de/t/help-with-conditional-copy-track-to-discnumber/14477/5 "2026-02-09T12:24:21Z")

</div>

Closed on February 9, 2026, 12:24pm UTC


