<cfloop from=1 to=10 index="x"> #x#- <cfset x = x + 2> </cfloop> 1- 2- 3- 4- 5- 6- 7- 8- 9- 10-
I would use step in cfloop, however, the increment can be variable from iteration to iteration. Byron Mann Lead Engineer & Architect HostMySite.com On Thu, Apr 24, 2014 at 12:32 PM, Blake <[email protected]> wrote: > > You are only incrementing the earlier loops by one. > > Why not do something like > <cfset y = y+2> > > > On Thu, Apr 24, 2014 at 9: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:358398 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

