Can't merge data from one tag with another

In many of my music files, the genre tag only contains the word ‘Electronic’. However, there’s another tag called ‘style’, that I want to append to the genre, so it will for example, say, ‘Electronic; Techno’. My script is simple as can be, but didn’t change anything.

$set(Genre,$get(%style%))

I also tried the following variations which also didn’t work:

$get(%style%)
$get(%genre%)
$copymerge(%genre%,%style%)

and I tried:

$set(genre,$copymerge(genre,style,;))

I though that between these, one of them would work. What’s wrong? I’ve tried putting the tags without the ‘%’.

1 Like

I haven’t tested this but try:

$if(%style%,$if(%genre%,$set(genre,%genre%\, %style%),%style))
2 Likes
$if(%style%,$if(%genre%,$set(genre,%genre%\, %style%),%style%))
```                                                        ^^
Works! Just needed the closing '%'.
2 Likes