![](https://secure.gravatar.com/avatar/74d41c3215dcdd377343cdc47311757c.jpg?s=120&d=mm&r=g)
14 Jul
2021
14 Jul
'21
1:06 p.m.
Pablo Rodriguez schrieb am 14.07.2021 um 20:41:
Dear list,
I have the following sample:
\starttext \doloopoverlist{a,b,c,d} {\recursestring, number: \recurselevel\\} \stoptext
Which is the way to get the number when looping over a list?
There is no number, you're just iterating over a list. \definecounter [loopcounter] \starttext \resetcounter [loopcounter] \doloopoverlist {a,b,c,d} {\recursestring, number: \incrementedcounter [loopcounter]\par} \stoptext Wolfgang