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

Using CFLOOP and CFBREAK

One common task in applications is to be able to execute the same block of code multiple times in a row.

Although this can be done by simply repeating the same block of code several times in a row on the page, this makes the page bigger and less efficient because all that code has to be loaded into memory to interpret it. It also doesn’t allow the code to be executed a variable number of times. Code maintenance becomes a problem as well, because the programmer has to remember to change every instance of that block.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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