Looping is a very powerful programming technique that lets you repeat a set of instructions or display output over and over until one or more conditions are met. CFLOOP supports five different types of loops:
Looping over a Query
Looping over a List
Looping over a COM Collection or Structure
The type of loop is determined by the attributes of the CFLOOP tag.
An index loop repeats for a number of times determined by a range of numeric values. Index loops are commonly known as FOR loops, as in "loop FOR this range of values."
<CFLOOP INDEX="parameter_name" FROM="beginning_value" TO="ending_value" STEP="increment"> ... HTML or CFML code to execute ... </CFLOOP>
Required. Defines ...