Dear all,
I have rows of data with abbreviations of Bachelor programs that I want to fully describe in the pop-up. Therefore I made this arcade expression for each bachelor program:
var txt = Split($feature.Opleiding, '/')
if (IndexOF(txt, 'BA') > -1) {
return 'Bedrijfskunde en agribusiness'
}Sometimes a row has multiple bachelor programs active (i.e. BA/TA). In the Pop-Up all expressions are active, see screenshot. If the program is not in the dataset, it will not be shown.

This way, both studies will show up, but without a comma or 'and'. So that is why I added this expression (expression/expr0)
if (Find('/', $feature.Opleiding, 0) > -1) {
return ', '
}However three combinations or more from these studies are also possible. Now I randomly put down the expression somewhere in the pop-up. As you might have guessed the comma sometimes will be placed before the bachelor programs or after...
The question: How could I solve this problem so the comma will be placed in between the corresponding active expressions?