Whatever message this page gives is out now! Go check it out!
<cfloop
condition = "expression">
...
</cfloop>Attribute | Req/Opt | Default | Description |
condition | Required | Condition that controls the loop. |
<!--- Set the variable CountVar to 0. --->
<cfset CountVar = 0>
<!--- Loop until CountVar = 5. --->
<cfloop condition = "CountVar LESS THAN 5">
<cfset CountVar = CountVar + 1>
The loop index is <cfoutput>#CountVar#</cfoutput>.<br>
</cfloop>The loop index is 1.
The loop index is 2.
The loop index is 3.
The loop index is 4.
The loop index is 5.