Adobe ColdFusion 8

Using looping statements

CFScript provides a richer selection of looping constructs than those supplied by CFML tags. It enables you to create efficient looping constructs similar to those in most programming and scripting languages. CFScript provides the following looping constructs:

  • For
  • While
  • Do-while
  • For-in

CFScript also includes the continue and break statements that control loop processing.

The following sections describe these types of loops and their uses.