Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to access for loop counter of outer loop

You can use "forloop.parentloop" to get to the outer forloop, 
so in your case "{{forloop.parentloop.counter}}".
 
PREVIOUS NEXT
Tagged: #access #loop #counter #outer #loop
ADD COMMENT
Topic
Name
5+8 =