CFloop +1

This got me the other day.  If you reference your index var after an index loop, it will be +1 higher than the "to" value. In the example the post loop value will be 11 not 10.

<cfoutput>
<cfloop index="i" from="1" to="10">
#i#<br />
</cfloop>
Post loop: #i#
</cfoutput>

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
BlogCFC was created by Raymond Camden. This blog is running version 5.9.001. Contact Blog Owner