Tag Archives: condition

Creating a simple conditional loop in ColdFusion using the CFLOOP tag

In previous examples, “Creating a simple index loop in ColdFusion using the CFLOOP tag” and “Setting the step size on an indexed loop in ColdFusion using the CFLOOP tag”, we saw how you could create a simple index loop in ColdFusion using the <CFLOOP> tag using the index, from, and to, and step attributes.

The following example shows how you can create a simple conditional loop in ColdFusion using the <CFLOOP> tag using the condition attribute.

Continue reading