Problem with $unset function

I am using this script to preserve the content of some tags and it always works fine
$foreach(%keep%,$unset(%_loop_value%))

I was creating another script but I noticed that if I try to copy one of the values contained in keep, it does not copy anything.
Eg: %keep% contains engineer $setmulti(newtag,%engineer%) it creates nothing

Does this mean that the $unset function does not allow you to copy the content of that tag into another?

is there an alternative way to do this?

If you use $unset(engineer) the engineer tag does not exist anymore, it will be empty.

If you want to actually keep the original value of a tag and have this value available in scripting use the “Preserve these tags…” option in Options Metadata

1 Like

ok, but the “preserve these tags” option is global and it is not useful to me for specific tags of specific recordings. This is why I use the $foreach function.