{% set title_org = nav_item.title.split(" ") %}
{% set title_mod = "" %}
{% for i in title_org %}
{% if loop.index > 3 %}
{% set title_mod = title_mod + ' ' + i %}
{% endif %}
{% endfor %}
<a href="{{ nav_item.url }}" id="{{ id }}">{{ title_mod }}</a>
{{ title_mod }}
is an empty string despite concatenated within the loop. How can I retrieve the updated {{ title_mod }}
outside the for loop?