Open SFlyers opened 4 years ago
@PettyHandSome is there a question? I don't know what hasNext
is.
directive.foreach.iterator.name
How to judge the end of foreach loop?
In NVelocity (which is a port of Velocity from about 15 years ago) we've got directive.foreach.counter.name
which is by default named velocityCount
(1-based), you could compare its value against your collection's length.
The other option is to use the #afterall
section (see the docs).
In NVelocity (which is a port of Velocity from about 15 years ago) we've got
directive.foreach.counter.name
which is by default namedvelocityCount
(1-based), you could compare its value against your collection's length.The other option is to use the
#afterall
section (see the docs).
OK.Thanks
version 1.1.1