Posted on 06/11/2018 12:56:52
Hi Jens
Your caseItem.GetLoop("ItemPublisher:Item.SolutionType.Options") is a collection/enumeration, so you can do something like this:
var options = caseItem.GetLoop("ItemPublisher:Item.SolutionType.Options");
var totalOptionsCount = options.Count;
int optionsRendered = 0;
@foreach(var i in options)
{
if(i.GetBoolean("ItemPublisher:Item.SolutionType.Option.IsSelected"))
{
var solutionType = i.GetString("ItemPublisher:Item.SolutionType.Option.Label");
if(!(++optionsRendered == totalOptionsCount)){
solutionType += ", ";
}
@solutionType
}
}