Avatar photo

Welcome Guest

Pages: 1
test if albumartist and artist are different, if yes...
2manyFLACPostMarch 26, 2017, 06:54
Avatar photo
Newbie
Posts: 10
Registered:
September 20, 2015, 11:49
Normal topictest if albumartist and artist are different, if yes...

hi

i have been trying to write the action that would test if <Album Artist> and <Artist> fields are different, and if YES, then append the <Album Artist> to the <Title> field.

any tips on what I'm missing?

I've tried

Force Group Execution
Run action <compare the two fields>
If true
Run action <append>
Else
EndIf

2MR2PostMarch 26, 2017, 07:57
Avatar photo
Administrator
Posts: 2086
Registered:
August 23, 2012, 19:27
Normal topicRe: test if albumartist and artist are different, if yes...

I can't see the sub-actions being used, so I can't tell what is being done there. You could do the following:

Force Grouped Execution
Test if the Artist field is not equal to "\[Album Artist]" (Set result)
if true
Append "…-…" and the Album Artist field to the Title field
endif

Please view the above in the forum as the mailer strips out backslashes. The ... sequences are use to represent leading and trailing spaces and/or newline characters.

Yate allows you to insert the current and initial contents of any of its fields directly into most action statements. Rather than remember the exact field names and the cryptic escape sequences you can do the insertion from a field's context menu via Insert Yate Field.

If for some reason, and there are may valid reasons, why you want your main action to run stepwise you can always do the work above in an inline action:

Run inline action 'Compare and Possibly Append' grouped
.
.
.
Start Compare and Possibly Append
Test if the Artist field is not equal to "\[Album Artist]" (Set result)
if true
Append "…-…" and the Album Artist field to the Title field
endif

2manyFLACPostMarch 26, 2017, 10:51
Avatar photo
Newbie
Posts: 10
Registered:
September 20, 2015, 11:49
Normal topicRe: test if albumartist and artist are different, if yes...

thank you, i got it working with your help!

much appreciated. i was overthinking it with sub actions.

Pages: 1
Mingle Forum by Cartpauj | Version: 1.1.0beta | Page loaded in: 0.035 seconds.