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

Chapter 7. Implementing ColdFusion Loops

Chapter 7. Implementing ColdFusion Loops

Dynamic Web developers often encounter situations in which they have to repeat an instruction or block of instructions several times. Fortunately, most development languages have commands to help developers perform this task. These commands are usually referred to as looping commands or simply loops. In JavaScript, for example, the for command is used to implement a “for-next” loop—a loop that counts between a starting and an ending value, processing the associated code once for each count. The JavaScript while command supports a “while” loop, which continues to process the loop code as long as an associated Boolean condition has a value of TRUE.

ColdFusion allows you to implement loops through the versatile <cfloop> tag, which supports five different kinds of loops. You use the <cfloop> tag's many attributes to indicate which type of loop you want to run.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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