Copy Field Value in another field

Hello,
I need some help to program the following.
I have built a field "Composer2" through checkbox.
When I check a box in the tag panel, the field "Composer2" display the info.
Here is the value of each check box: $IF($%PL Deer Jade%=1,PL Deer Jade-,)

I would like to copy the output of the field "Composer2" into the field "Composer" without erasing the content of the field "Composer" which has currently this value: $metasep(composer,\\)

What function should I use in the value ? OR, AND, IF2 ?

thanks

This is no valid MP3tag scripting syntax.
I doubt that you can define a format string for a tag panel element, you can select only a field which is read and written to.

If you want to copy the field contents of one field to another, see the FAQs

If you want to add contents to a multi-value field, try as
Format string: $metasep(composer,\\)\\PL Deer Jade-

Hello thanks for your help.

see my configuration in attachment.

Composer2 Value =
$IF($%PL Deer Jade%=1,PL Deer Jade-,)$IF($%PL Bresil%=1,PL Bresil-,)$IF($%PL Laurent Garnier%=1,PL Laurent Garnier-,)$IF($%PL Radio Meuh%=1,PL Radio Meuh-,)$IF($%PL SOLOMUN%=1,PL Solomun-,)$IF($%PL Carl Cox%=1,PL Carl Cox-,)$IF($%PL Luciano%=1,PL Luciano-,)$IF($%PL MOCHAKK%=1,PL Mochakk-,)$IF($%PL Enfants%=1,PL Enfants-,)$IF($%PL French Touch%=1,PL French Touch-,)$IF($%PL GUTS%=1,PL Guts-,)$IF($%PL HOTEL%=1,PL Hotel-,)$IF($%PL MACEO PLEX%=1,PL Maceo Plex-,)$IF($%PL Original/Sampled%=1,PL Original/Sampled-,)$IF($%PL Improbable%=1,PL Improbable-,)

I would like to copy the value of composer2 into Composer field

I also tried an action but I could not found Composer2 for the action. reason why I would like to copy composer2 value to composer field.

Remember I don't want to delete value of composer if there is already a value.

thanks

how can I export my configuration to let you test it on your computer ?

thanks

I don't have a Mac - so it would not be helpful.

Again: the syntax

is not a valid syntax.
AFAIK it should be something like
$if($eql(%PL Deer Jade%,1),PL Deer Jade,)
You can test this expression in Convert>Tag-Tag.
I doubt that you can use the display in a field list column to set the value of field automatically.
You would have to use an action of the type "Format tag field" for the target field with the format string that you applied so far for the value of the column.
Unless you really set a (new) value the field either does not exist or does not recognize the displayed value.

May you explain how I setup this action ? What format string should I fill in the action ?

thanks

See the documentation on how to create an action:

I cannot say a lot about the contents of the format string - basically it would be this:

... only with the correct syntax.

Hello,

I already have an action to add tags info into comment field.

I tried to create an action to add composer2 data into composer field...but it does not work.

what would be the correct syntax I should use ?

sorry but I'm a novice into programming in MP3TAG

Please show us the action that you already have.
Or please show us the action with which you tried to add data to composer.
Basically, I already mentioned the necessary parts:

and

so, combine these 2 and get
Format string: $metasep(composer,\\)\\$if($eql(%PL Deer Jade%,1),PL Deer Jade,)

here is the format string I have for the comment field:

%Initialkey%-$left($right(%bpm%,7),3)-E%Energylevel%-%Rate%-$IF($%Intro%=1,Intro-,)$IF($%intronobeat%=1,Intronobeat-,)$IF($%Early%=1,Early-,)$IF($%warmup%=1,Warmup-,)$IF($%Peaktime%=1,Peak-,)$IF($%End%=1,End-,)$IF($%Emergency%=1,Emergency-,)$IF($%Groovy%=1,Groovy-,)$IF($%Tubes%=1,Tubes-,)-%Composer%

Taking in consideration that I have created a field "Mix Scheduled" that record the output of the checkbox: intro, warmup, peaktime, emergency, Groovy, tubes, End...
I tried to add %mix scheduled% into the action to replace the if function but it did not work. reason why I have added the If function...

Either the syntax for the Mac version is completely different from the WIndows version or you present something that has never worked and comes from some kind of AI source.
Again: I am pretty sure that the syntax

is invalid.
I would suggest that you verify first that this expression works at all or replace it with already mentioned code that I suggested earlier.

ok shall I replace this string
$IF($%Intro%=1,Intro-,)
by
$if($eql(%Intro%,1),Intro-,)

That would be my idea

I have done the proposed change and tried to add the "Mix Schedule" info into the comment field through an action but comment field remain blank.

mix schedule value: $IF($eql(%Intro%,1),Intro-,)$IF($eql(%intronobeat%,1),Intronobeat-,)$IF($eql(%Early%,1),Early-,)$IF($eql(%warmup%,1),Warmup-,)$IF($eql(%Peaktime%,1),Peak-,)$IF($eql(%End%,1),End-,)$IF($eql(%Emergency%,1),Emergency-,)

Action for comment ( see attachment)

%mix schedule%

Please check the extended tags dialogue whether mix schedule has a value at all (=exists)?

On a side note:
I would create a test file and supply a value for one of your user-defined fields like intronobeat and then check if the expression for mix schedule returns "Intronobeat-" - to make sure that the expression works

on the left tags dialogue menu, "mix schedule" is blank :frowning: but the column "mix schedule" has the correct info ( see print screen)

I meant the extended tags dialogue that opens with Command-T.

Please show us the extended tags dialogue and the definition of the item in the tag panel.
Or: the field, that you filled in the file list also has to referenced in the tag panel item definition to show the same data.

I did command-T and the field "mix schedule" is not in the list...
mix schedule field is recording the output of the checkbox: Intro, Warmup, peaktime,...

Warmup = 1 is displayed below in the extended tags dialogue.
Warmup = 1 because the warmup checkbox is checked on the left tags menu

really appreciate your support/help

This prooves to me several things:

  • The column in the file list only displays stored data but the display is not enough to also write it to a field - in this case mix schedule.
  • The field mix schedule has not/never been filled with data.
  • You need an action of the type "Format tag field" to write data to a tag field.

So, after you have filled the various fields like "Warmup", "Early" etc. with the 1, you have to run the action of the type "Format tag field" for "mix schedule" with the format string

And you have to run that action, every time you change something in the individual parts of the schedule.

ok I did an action for the field "Mix schedule" with this value:

$IF($eql(%Intro%,1),Intro-,)$IF($eql(%intronobeat%,1),Intronobeat-,)$IF($eql(%Early%,1),Early-,)$IF($eql(%warmup%,1),Warmup-,)$IF($eql(%Peaktime%,1),Peak-,)$IF($eql(%End%,1),End-,)$IF($eql(%Emergency%,1),Emergency-,)

and now the "mix schedule" data is available on the left menu

we make progress !

my question is can I combine 2 actions into 1 to fill different data into composer and Mix schedule ?