<!---
Name:        loop3.cfm
Author:      Ben Forta (ben@forta.com)
Description: Demonstrate use of nested loops
Created:     3/27/01
--->

<HTML>
<HEAD>
   <TITLE>Loop 3</TITLE>
</HEAD>

<BODY>

<!--- Hex value list --->
<CFSET hex="00,33,66,99,CC,FF">

<!--- Create table --->
<TABLE>

<!--- Start RR loop --->
<CFLOOP INDEX="red" LIST="#hex#">
   <!--- Start GG loop --->
   <CFLOOP INDEX="green" LIST="#hex#">
      <TR>
	  <!--- Start BB loop --->
	  <CFLOOP INDEX="blue" LIST="#hex#">
	     <!--- Buld RGB value --->
	     <CFSET rgb=red&green&blue>
		 <!--- And display it --->
		 <CFOUTPUT>
		 <TD BGCOLOR="#rgb#" WIDTH="100" ALIGN="center">#rgb#</TD>
		 </CFOUTPUT>
	  </CFLOOP>
	  </TR>
   </CFLOOP>
</CFLOOP>

</TABLE>

</BODY>
</HTML>

