correction: <CFIF LoopYes EQ True> <cfloop index="count" from="1" to="10"> <cfloop index="theindex" from="1" to="2"> The index Is <CFOUTPUT>#theindex# </CFOUTPUT> </cfloop> </cfloop> <cfelse> <cfloop index="theindex" from="1" to="2"> The index Is <CFOUTPUT>#theindex# </CFOUTPUT> </cfloop> </CFIF>
-----Original Message----- From: Sam Roach [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 8:59 AM To: CF-Talk Subject: RE: Looping depending on CFIF Statement Maybe: <CFIF LoopYes EQ True> <cfloop index="count" from="1" to="10"> <cfloop index="theindex" from="1" to="2"> The index Is <CFOUTPUT>#theindex# </CFOUTPUT> </cfloop> <cfloop> <cfelse> <cfloop index="theindex" from="1" to="2"> The index Is <CFOUTPUT>#theindex# </CFOUTPUT> </cfloop> </CFIF> -- Sam -----Original Message----- From: Angel Stewart [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 29, 2002 10:38 AM To: CF-Talk Subject: Looping depending on CFIF Statement Hi all, Any idea why I can't seem to wrap CFLOOP tags in CFIF statements? I keep getting errors as though CF is totally ignoring the CFIF statement and still parsing the </CFLOOP> tag. Here is some simple sample code: <CFIF LoopYes EQ True> <cfloop index="count" from="1" to="10"> </CFIF> <cfloop index="theindex" from="1" to="2"> The index Is <CFOUTPUT>#theindex# </CFOUTPUT> </cfloop> <CFIF LoopYes EQ True> </cfloop> </cfif> Of course LoopYes is NOT equal to True. ______________________________________________________________________ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists