<td class="{{ class }}">
    {% set flag = fields.core.country.value is not null ? assetGetCountryFlag(fields.core.country.value) : '' %}
    {% if flag is not empty %}
        <img src="{{ flag }}" style="max-height: 24px;" class="mr-sm" />
    {% endif %}

    {% set location = [] %}
    {% if fields.core.city.value is not empty %}
        {% set location = location|merge([fields.core.city.value]) %}
    {% endif %}
    {% if fields.core.state.value is not empty %}
        {% set location = location|merge([fields.core.state.value]) %}
    {% elseif fields.core.country.value is not empty %}
        {% set location = location|merge([fields.core.country.value]) %}
    {% endif %}
    {{ location|join(', ')|purify }}
    <div class="clearfix"></div>
</td>
