{%- if doc.directiveOptions.selector.split(',').length %}

Selectors

{% for selector in doc.directiveOptions.selector.split(',') %}

{$ selector $}

{% endfor %}
{% endif %}