currentIndex

The index @index reads here, or null when this scope is not inside a list template.

Components nested inside a template instance render in that instance's scope rather than in one of their own, so the innermost iteration is simply this scope's own EvaluationScope.index.