>
> 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:358404
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm