Nathan,

Nathan Bubna wrote:
> #foreach( $item in $loop.watch($items) )
> $item
> #if( $item eq 'some break condition' )$loop.break()#end
> #end

If you're going to support "break", how about supporting "continue" as
well (restart loop from the top after iterator increment).

I wonder how this would jive with nested loops. Based upon the syntax
above, I wonder if it would be possible to break an inner loop without
breaking the outer loop (it looks like not). While IteratorTool does not
appear to directly support nested loops, I think such support would be a
great goal.

-chris


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to