# Checking if TITLE has something before changing TRACK

**URL:** <https://community.mp3tag.de/t/checking-if-title-has-something-before-changing-track/19095>\
**Category:** Support\
**Created:** [June 26, 2017, 8:54pm UTC](https://community.mp3tag.de/t/checking-if-title-has-something-before-changing-track/19095 "2017-06-26T20:54:14Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Zerow](https://community.mp3tag.de/user_avatar/community.mp3tag.de/zerow/32/11379_2.png) [@Zerow](https://community.mp3tag.de/u/Zerow)\
**Post date:** [June 26, 2017, 8:54pm UTC](https://community.mp3tag.de/t/checking-if-title-has-something-before-changing-track/19095/1 "2017-06-26T20:54:14Z")

</div>

I have this action that copies the first word from FILENAME to TRACK, if it is a 2 or 3 digit number

```
Format value "TRACK": $mod(%_FILENAME%,100)

```

That is for the purpose of auto-numbering of new files, based on the name of the file. But this action is used be me also after renaming a file, to update the TITLE [by coping the FILENAME to it]. And so [long story short] if the song has a title like  
"99 Problems"then I have a real problem. But I could avoid that issue if this action of mine would first check, if the TITLE tag field is already filled with anything. So, can anyone rewrite it please, so that it would check first if there is something in the TITLE tag, and copy the 2-3 digits to TRACK only if the TITLE happens to be empty?

---

_[View the full topic](https://community.mp3tag.de/t/checking-if-title-has-something-before-changing-track/19095)._
