How to get more "codes" from discogs' "Barcode and other Identifiers"

Hello Community,

i'd like to get more than just the "Barcode" from discogs' "Barcode and other Identifiers" (Label Code, SPARS Code, ...) and be written into a multiline Tag Field. With the help of AI and after many trials and errors, i modified the "Discogs Release ID.src" as follows:

Barcode

outputto "BARCODE"
json_foreach "identifiers"
json_select "type"
if "Barcode"
json_select "value"
ifnotoutput "BARCODE"
outputto "BARCODE"
say "Barcode: "
sayrest
else
outputto "BARCODE"
say "; "
sayrest
endif
endif
json_foreach_end

Label Code

outputto "BARCODE"
json_foreach "identifiers"
json_select "type"
if "Label Code"
json_select "value"
ifnotoutput "LABEL CODE"
endif
endif
json_foreach_end

SPARS Code

outputto "BARCODE"
json_foreach "identifiers"
json_select "type"
if "SPARS Code"
json_select "value"
ifnotoutput "SPARS Code"
sayrest
endif
endif
json_foreach_end

The result is:

Barcode: xxx...Label Code: xxx...SPARS Code: xxx...

But I want it to look like this:

Barcode: xxx...

Label Code: xxx...

SPARS Code: xxx...

in other words, how to create a new line for each code/identifier?

Is this possible?

Thanks in advance and above all thanks to Florian Heidenreich for (t)his simply amazing app.

Are you looking for something like SayNewline?

Thanks for your quick respons, but as long as i don't know where to place "saynewline" in the code above....

Got it. The .src now looks like this:

Barcode

outputto "BARCODE"
json_foreach "identifiers"
json_select "type"
if "Barcode"
json_select "value"
ifnotoutput "BARCODE"
outputto "BARCODE"
say "Barcode: "
sayrest
else
outputto "BARCODE"
say "; "
sayrest
endif
saynewline
endif
json_foreach_end

Label Code

outputto "BARCODE"
json_foreach "identifiers"
json_select "type"
if "Label Code"
json_select "value"
ifnotoutput "LABEL CODE"
endif
saynewline
endif
json_foreach_end

SPARS Code

outputto "BARCODE"
json_foreach "identifiers"
json_select "type"
if "SPARS Code"
json_select "value"
ifnotoutput "SPARS Code"
sayrest
endif
saynewline
endif
json_foreach_end

which is exactly what i wanted.

LyricsLover, you made my day.