Twig Cycle - how to show different html based on cycle
Based on the docs:

{% for event in events %}
    {{ cycle(['odd', 'even'], loop.index0) }}
{% endfor %}


or (achieves the same thing):

{% for event in events %}
    {% set oddOrEven = cycle(['odd', 'even'], loop.index0) %}
    {{ oddOrEven }}
{% endfor %}


So, for different HTML:

{% for event in events %}
    {% set oddOrEven = cycle(['odd', 'even'], loop.index0) %}
    {% if oddOrEven == 'odd' %}
        &lt;div class="Odd"&gt;Odd&lt;/div&gt;
    {% else %}
        &lt;div class="Even"&gt;Even&lt;/div&gt;
    {% endif %}
{% endfor %}