Hi Ben & Will, > Hmm, I usually set a boolean flag, and then wrap the inner loop in an #if > statement. Anyone else have a better solution?
The IteratorTool is made for that kind of stuff. :) http://jakarta.apache.org/velocity/tools/javadoc/org/apache/velocity/tools/generic/IteratorTool.html Something like this: #set( $wrapped = $mill.wrap($list) ) #foreach( $item in $wrapped ) #if ($item == "1") $wrapped.stop() #end #end Best regards, -- Shinobu Kawai -- Shinobu Kawai <[EMAIL PROTECTED]> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]