1

I'm using the NVelocity from the Castle project and according to the velocity specs I should be able to access the loop counter like this:

$foreach.counter

But I can't get it to work so I suspect that it has not been implemented in NVelocity.

Can anyone confirm this?

Ola Herrdahl
  • 4,216
  • 3
  • 29
  • 23

1 Answers1

1

Yes, it's implemented, but it's called $velocityCount

Mauricio Scheffer
  • 98,863
  • 23
  • 192
  • 275