• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Part V: Appendixes > <CFLOOP>, <CFBREAK>, </CFLOOP>

<CFLOOP>, <CFBREAK>, </CFLOOP>

Description: <CFLOOP> allows you to create loops within your code. Loops are blocks of code that are executed repeatedly until a specific condition is met. <CFBREAK> allows you to unconditionally terminate a loop. ColdFusion supports five kinds of loops:

  • For loops repeat a specific number of times.

  • While loops repeat until a set condition returns FALSE.

  • Query loops go through the results of a <CFQUERY> once for each row returned.

  • List loops go through the elements of a specified list.

  • Collection loops are used to loop over collections.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint