I want to reuse my twig variable for the loop outside the loop, but I can't! I've tried like this
{% set b = '' %}
{% set c = '' %}
{% for i,foo in cout %}
{% set b = cout[i] %}
{{ b }}
{% endfor %}
{% for j,bar in efforts %}
{% set c = efforts[j] %}
{{ c }}
{% endfor %}
{{ b }} {{ c }}
But here it's return me the last value of b and c, so I want all value of c and b outside the loop, thanks!