{if $contents != ""}
  {assign var=vals value="`$g_multi_val_delimiter`"|explode:$VALUE}
  {assign var=is_first value=true}
  {strip}
  {foreach from=$contents.options item=curr_group_info name=group}
    {assign var=options value=$curr_group_info.options}
    {foreach from=$options item=option name=row}
      {if $option.option_value|in_array:$vals}
        {if $is_first == false}, {/if}
        {$option.option_name}
        {assign var=is_first value=false}
      {/if}
    {/foreach}
  {/foreach}
  {/strip}
{/if}