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

Chapter 7. Implementing ColdFusion Loops > Looping Over a Collection

Looping Over a Collection

Collections are sets of key-value pairings. Any ColdFusion structure is an example of a collection. Additionally, many of ColdFusion's variable scopes can be treated as collections. They include application, session, form, URL, CGI, and cookie variables. Looping over a collection refers to systematically working through all the keys in the collection and performing some action for each key-value pair.

The following examples illustrate how you can use ColdFusion's capability to loop over a collection to your advantage.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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