coldfusion CFLOOP How-To Index Loop

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Example

Use the from and to attributes to specify how many iterations should occur. The (optional) step attribute allows you to determine how big the increments will be.

<cfloop from="1" to="10" index="i" step="2">
    <cfoutput>
        #i#<br />
    </cfoutput>
</cfloop>


Got any coldfusion Question?