Hi,
On 8/15/11 10:08 PM, Lars Ruoff wrote:
> That is, the assignments in the for loop are local to the for-loop
> scope. Although the variable was first initialized in the outer scope.
> I wouldn't expect this. Normal behaviour??
This is intended behavior. For counting in loops use {{ loop.index }}
and {{ loop.index0 }} instead.
Regards,
Armin
> What can i do to get the last value of last_i to the outer scope?
Use the {{ loop.index }} variable and optionally add something to it.
Regards,
Armin
--
You received this message because you are subscribed to the Google Groups
"pocoo-libs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pocoo-libs?hl=en.