Quote:
Originally Posted by ownedbycats
strcat: What would be the best way to add the comma separators here? I thought of "if id then output" but that seems clumsy.
|
You can do it with list_join. I don't have your actual text and don't want to read/type it in, but it would look something like
Code:
program:
list_join(
',',
if x then urls_from_identifiers('foo:bar', 0) fi, ',',
if y then urls_from_identifiers('mumble:fratz', 0) fi, ',')
The list_join function ignores empty lists.