Yes Adam, you're right. I looked at the code quickly and saw the one increment and assumed *sigh* that it was using the for loop in the first example. Well in that case it is working as intended then.
Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/113032480415921517411 On Fri, Apr 25, 2014 at 4:56 AM, Adam Cameron <[email protected]> wrote: > > > > > The problem with cfscript is that it is more ESMAC compliant, which means > > you can increment it when being used in a for loop as you have shown in > > your last example. > > > > Well yes and no. the CFScript construct: > > for(i=1; i<=10;i++){ > // stuff > } > > is not analogous to: > > <cfloop index="i" from="1" to="10"> > <!--- stuff ---> > </cfloop> > > It's analogous to: > <cfset i=1> > <cfloop condition="i LE 10"> > <!--- stuff ---> > <cfset i++> > </cfloop> > > -- > Adam > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358405 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

