Category Archives: CFLOOP

Creating a calendar using ColdFusion

In a previous example, “Getting started with Dates in ColdFusion”, we saw how you could get started with creating and formatting date values, as well as many other date related functions in ColdFusion.

The following examples show how you can create a couple of simple calendar controls in ColdFusion using some loops and various date functions.

Continue reading

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

Setting the step size on an indexed loop in ColdFusion using the CFLOOP tag

In a previous example, “Creating a simple index loop in ColdFusion using the CFLOOP tag”, we saw how you could create a simple index loop in ColdFusion using the <CFLOOP> tag and setting the index, from and to attributes.

The following example shows how you can set the step size on an indexed loop using the <CFLOOP> tag and specifying the step attribute.

Continue reading