September 2007
Intermediate to advanced
600 pages
20h 21m
English
Like the <cfif> and <cfswitch> statements, loops can be nested. Nesting loops lets you create extremely powerful code, as long as you are very careful in constructing the loops. Listing 9.13 contains a practical example of nested loops, using three loops to display a table of Web browser–safe colors (seen in Figure 9.10). Save the code as loop3.cfm.
<!--- Name: loop3.cfm Author: Ben Forta (ben@forta.com) Description: Demonstrate use of nested loops Created: 07/01/2007 ---> <html> <head> ... |
Read now
Unlock full access