# Check for year tag if exist or not

**URL:** https://community.mp3tag.de/t/check-for-year-tag-if-exist-or-not/6077
**Category:** Support
**Created:** [January 16, 2008, 12:15pm UTC](https://community.mp3tag.de/t/check-for-year-tag-if-exist-or-not/6077 "2008-01-16T12:15:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mike2089](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/e0b2c6/32.png) [@mike2089](https://community.mp3tag.de/u/mike2089)
#### Post date: [January 16, 2008, 12:15pm UTC](https://community.mp3tag.de/t/check-for-year-tag-if-exist-or-not/6077/1 "2008-01-16T12:15:22Z")

</div>

Hi  
I am using an action to move my music to my storage location, in the process I use the following action. Is there any way in an expression to check if the year field exists, if it does then append the '['%year%']' portion, if it is blank then leave it off . This works great until I have an album that I can't find the year then I end up with [] in the directory name.

Any thoughts,

thanks in advance  
Mike

\_FILENAME  
k:\Music Archive\Albums\%artist%\%album% '['%year%']'\%\_filename%

---

<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 16, 2008, 12:38pm UTC](https://community.mp3tag.de/t/check-for-year-tag-if-exist-or-not/6077/2 "2008-01-16T12:38:04Z")

</div>

Try

k:\Music Archive\Albums\\%artist%\\%album%['['%year%']']\\%\_filename%

---

<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:20pm UTC](https://community.mp3tag.de/t/check-for-year-tag-if-exist-or-not/6077/3 "2026-02-09T12:20:42Z")

</div>


