# conditional move script

**URL:** https://community.mp3tag.de/t/conditional-move-script/4515
**Category:** Support
**Created:** [February 24, 2007, 5:42pm UTC](https://community.mp3tag.de/t/conditional-move-script/4515 "2007-02-24T17:42:46Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![sinthome](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/ba8739/32.png) [@sinthome](https://community.mp3tag.de/u/sinthome)
#### Post date: [February 24, 2007, 5:42pm UTC](https://community.mp3tag.de/t/conditional-move-script/4515/1 "2007-02-24T17:42:46Z")

</div>

when i move new music into my main library i have a transitional folder where the files await their formatting. i now have a 'basic' action group that does almost everything automatically. one thing that would help is if i could set it up to only rename/move the album folder if and only if it there is a year tag. how would i set that up? and thanks!

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [February 24, 2007, 10:31pm UTC](https://community.mp3tag.de/t/conditional-move-script/4515/2 "2007-02-24T22:31:38Z")

</div>

Basically it would work like this:  
$if(%year%,do the move stuff,put a placeholder that keeps everything unchanged)

Maybe you need to post your action so we can give a more exact answer.

---

<div class="post-metadata">

### Author: ![sinthome](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/ba8739/32.png) [@sinthome](https://community.mp3tag.de/u/sinthome)
#### Post date: [February 25, 2007, 12:38am UTC](https://community.mp3tag.de/t/conditional-move-script/4515/3 "2007-02-25T00:38:47Z")

</div>

i use:  
format value  
directory field  
C:...\music\%artist% - (%year%) %album%

🙂

---

<div class="post-metadata">

### Author: ![sinthome](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/ba8739/32.png) [@sinthome](https://community.mp3tag.de/u/sinthome)
#### Post date: [February 25, 2007, 10:06pm UTC](https://community.mp3tag.de/t/conditional-move-script/4515/4 "2007-02-25T22:06:15Z")

</div>

so how do i put a placeholder? apologies for my ignorance!

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [February 25, 2007, 11:59pm UTC](https://community.mp3tag.de/t/conditional-move-script/4515/5 "2007-02-25T23:59:49Z")

</div>

So again:

> [@](#):
>
> Maybe you need to post your action so we can give a more exact answer.

Please give us a reality example from what you have coded so far.

DD.20070226.0200

---

<div class="post-metadata">

### Author: ![sinthome](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/ba8739/32.png) [@sinthome](https://community.mp3tag.de/u/sinthome)
#### Post date: [February 26, 2007, 12:23am UTC](https://community.mp3tag.de/t/conditional-move-script/4515/6 "2007-02-26T00:23:23Z")

</div>

> [@DetlevD](#):
>
> So again:
> 
> Please give us a reality example from what you have coded so far.

ummm...

> [@sinthome](#):
>
> format value  
> directory field  
> C:...\music\%artist% - (%year%) %album%

thats really real! ![:unsure:](https://community.mp3tag.de/uploads/default/original/1X/cfaeba84fe6704387c5b34dfdd8172bd51b6f533.gif ":unsure:")

album is located in \music\waitingroom\somefolder  
and i want it to be moved to \music  
and the folder formatted as %artist% - (%year%) %album%

im assuming it should look like this:  
$if(%year%,C:...\music\%artist% - (%year%) %album%,???)  
except i need something to replace the ??? that will 'do nothing'.

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [February 26, 2007, 1:27am UTC](https://community.mp3tag.de/t/conditional-move-script/4515/7 "2007-02-26T01:27:58Z")

</div>

> [@sinthome](#):
>
> album is located in \music\waitingroom\somefolder  
> and i want it to be moved to \music  
> and the folder formatted as %artist% - (%year%) %album%  
> im assuming it should look like this:  
> $if(%year%,C:...\music\%artist% - (%year%) %album%,???)  
> except i need something to replace the ??? that will 'do nothing'.

1. 

_'im assuming'_ means you did not actually any coding yet?

1. 

Please explain what _'C:...'_ does in the expression.

1. 

_'Do nothing'_ means something like _'no change - leave it as is'_ .  
In other words:  
If there is an event then let the new state exist otherwise let the old state exist.

DD.20070226.0327

---

<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/conditional-move-script/4515/8 "2026-02-09T12:20:10Z")

</div>


