CFLoop: ColdFusion Loop This is a conditional loop. A conditional loop iterates over a set of instructions as long as a condition is True. To use this type of loop correctly, the instructions must change the condition every time the loop iterates, until the condition is False. Conditional loops are known as WHILE loops, as in, "loop WHILE this condition is true."
<cfloop>
is a ColdFusion tag coldfusion that is used to iterate over data. It supports five different types of loops:
- Index Loops
- Condition Loops
- Looping over a Query
- Looping over a List
- Looping over a Structure
Read more about the different kinds of loops here