I can\'t for the life of me figure out how to add a For instance:
Something like this would work: An alternative way, that feels much less hacky: every OTHER iteration in a Twig loop.
$numArray = a
{% for num in numArray %}
{{num}}
{% if loop.index is even %}
{% endif %}
{% endfor %}
{% if num|length is odd %}
{% endif %}
{% for i in range(0, numArray|length-1, 2) %}
{% endfor %}
{{ numArray[i] }}
{{ numArray[i+1]|default("") }}