I've just made a patch to be able to modify the INDEX value.

What's needed to get it committed?

Thanks a lot.
Regards.
On Tue, 2010-06-15 at 17:04 +0100, Alan Williamson wrote:
> yes you can ....
> 
> <cfloop index="x" from="1" to="50">
>    <cfoutput>#x# </cfoutput>
> 
>    <cfif (x > 5) && (x < 20)>
>      <cfcontinue>
>    </cfif>
> </cfloop>
> 
> 
> 
> Victor Balada Diaz wrote:
> > Hello Alan,
> >
> > The problem with cfcontinue is that you can't skip in a clean way eg, 20
> > iterations. There is no such thing as cfcontinue times="20" nor just an
> > easy way to switch to a fixed position in the index, so i can not
> > achieve what i'm trying to do with cfcontinue. Do you have any other
> > idea?
> 

-- 
Open BlueDragon Public Mailing List
 http://www.openbluedragon.org/   http://twitter.com/OpenBlueDragon
 online manual: http://www.openbluedragon.org/manual/

 mailing list - http://groups.google.com/group/openbd?hl=en
Index: src/com/naryx/tagfusion/cfm/tag/cfLOOP.java
===================================================================
--- src/com/naryx/tagfusion/cfm/tag/cfLOOP.java	(revision 1065)
+++ src/com/naryx/tagfusion/cfm/tag/cfLOOP.java	(working copy)
@@ -316,6 +316,7 @@
 					_Session.setData( INDEX, loopIndex );
 				}
 				cfTagReturnType rt = super.render( _Session );
+				iFrom = _Session.getData(INDEX).getDouble();
 				if ( rt.isContinue() ) {
 					continue;
 				} else if ( rt.isBreak() ) {

Reply via email to