In velocity, I want to do something different in the last loop.
What is the correct idiom?
RELATED: Last iteration of enhanced for loop in
You can use a test if you are in last iteration::
#foreach( $item in $list ) $item.text #if( $foreach.hasNext ), #end #end