Different Use-Style Of FOR Loop In ColdFusion CFScrpit Tag

<!--- Create an array. --->
<cfset arrParts = ArrayNew( 1 ) />
 
<!--- Throw some random data in it to populate. --->
<cfset ArrayAppend( arrParts, "Ankle" ) />
<cfset ArrayAppend( arrParts, "Calves" ) />
<cfset ArrayAppend( arrParts, "Thighs" ) />
<cfset ArrayAppend( arrParts, "Butt" ) />
<cfset ArrayAppend( arrParts, "Boobs" ) />
<cfset ArrayAppend( arrParts, "Face" ) />
 
 
<!--- Create an iterator for the array. --->
<cfset objIterator = arrParts.Iterator() />
 
<!---
	Keep getting the next object from the iterator until
	will have reached the end of the array and have no
	more items.
--->
<cfloop condition="objIterator.HasNext()">
 
	#objIterator.Next()#<br />
 
</cfloop>

For Cut-and-Paste