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

Chapter 7. Implementing ColdFusion Loops > Implementing a While Loop

Implementing a While Loop

To review examples of how to set up Boolean conditions, see “Basic If-Then Rules,” Chapter 3.

While loops are controlled by an associated Boolean condition. As long as the condition has a value of TRUE, the loop continues to run. When the condition takes on a value of FALSE, the loop will terminate. The Boolean conditions must be expressed in the same way you expressed them when you set up <cfif> instructions in Chapter 3. The following examples show how to implement a ColdFusion while loop.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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