Hello i would like do somthing like that:
<?php $count = 0; foreach($a as $v): $count++; ?>
<?php if ($count%2 == 0): ?>
...
<?php endif; ?>
<?php endforeach; ?>
in twig:
{% for v in a %}
{% if ??? is even %}
...
{% endif %}
{% endfor %}
but how can i have a variable evolving with loop ?