Problem with $setmulti separators

I am trying to populate a tag (named PROENGMIX) that will contain all roles related to producing, engineering and mixing.

If I understand the syntax of setmulti correcly, it should be like this:

$setmulti(PROENGMIX,$if(%engineer%,%engineer%,)$if(%producer%,%producer%,)$if(%mixer%,%mixer%,)$if(%djmixer%,%djmixer%,)$if(%remixer%,%remixer%,),;))

This seems to work, but there is a problem with the separators.
They are not inserted in all cases.

From this example there is one missing between the producer and the co-producer.

Another example:

this:

becomes this:

Is there something wrong with my script?

Solved, I got it working by adding a ‘;’ after every second %blabla%.
(I had tried that before, but then it failed, probably because some minor syntax error)

1 Like