How do I make a condition so that an empty tag is not copied to another tag that already has a value?

For example, one music service has a Label tag, another one has Publisher tag, I want to make two commands: format value: Field:LABEL / Format string:%publisher and Field:PUBLISHER / Format string:%label% Is it possible that the already existing value is not overwritten by emptiness. So that if there is a value in the publisher tag, it is copied to the label tag, and if the publisher tag is empty, it is not copied. And vice versa.

Happy New Year

You could use an action of the type "Format value" for PUBLISHER
Format string: $if2(%publisher%,%label%)
and for LABEL
Format string: $if2(%label%,%publisher%)

see also the documentation:

Explanation of the Boolean function $IF2
image
for the above example
$if2(%publisher%,%label%)

IF the current content of %publisher% is empty, then the content of %label% will be filled.
IF the current content of %publisher% is NOT empty, then the content of %publisher% will be filled = target field (PUBLISHER) remains the same. If you would apply it to another target field like ALBUM, then the current content of ALBUM would be overwritten.

If both of the source fields are empty, then the $if2() function will return an empty string which will be written to the target field which means that the contents of the target field gets deleted.

Thank you. $if2(%label%,publisher%) need add % before publisher