I am using
#if( $velocityCount > 5 )
#break
#end
to break my foreach
loop, but its not breaking instead it is printing #break
in the output.
I also tried:
#foreach($item in $group.shipItems)
#if( $velocityCount > 5 )
#item.break
#end
#end
Here also it is printing #item.break
instead of breaking the loop.