How to "Replace"

Dear Community,

I've run into a problem defining a new action. I'd like to replace the DATE field in my vorbis tags with the ORIGINALYEAR field, but I can't get it to work.

What I have tried: Make a new action->replace. Then I specified Field->DATE Original->DATE Replace with->ORIGINALYEAR. But nothing happens :frowning:

I'm not sure I'm doing it right, it seems the tool tries to replace a specific string. But I cannot leave the Original field empty.

Would it be possible to check first, if ORIGINALYEAR is empty and only replace DATE if it is not?

Thanks in advance for any help on that matter!

You can only replace what is already there.
So in fact, I think you want to copy one tag field to another.
There is a post in the FAQs for this task:

For the conditional check use as
Format string: `$if2(%originalyear%,%date%)
Afterwards you have to remove the field DATE either in the extended tags dialogue or with an action (as part of an action group).

1 Like

Thank you very much for your help!

1 Like