They are all working the way they are intended, but I will look at one in particular as it can catch a lot of people out.
<cfloop from=1 to=10 index=y> y=#y#<BR> <cfset y++> </cfloop> When ColdFusion does any looping like this, the y is reset to the actual loop valuem hence making the manual increment mute. If you want it to step in lots of 2 then use the step attribute to do this. As for the first example, what a frigging mess but it does exactly what you are telling it to do. 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. Regards, Andrew Scott WebSite: http://www.andyscott.id.au/ Google+: http://plus.google.com/113032480415921517411 On Fri, Apr 25, 2014 at 2:28 AM, Byron Mann <[email protected]> wrote: > > Yes, that last one with "x" is what I actually want. > > I'm just surprise the first few versions do not act in the same manner. > > Byron Mann > Lead Engineer & Architect > HostMySite.com > > > On Thu, Apr 24, 2014 at 12:25 PM, Blake <[email protected]> wrote: > > > > > Looks like your incrementing X in the for statement and in the body of > the > > loop > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:358403 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

