As long as you always have a base case where the recursion stops, you're set. This is pretty much the only way to go if you need recusion on CF4.5 and less. If you're on CF5 or better, using a UDF is probably a wiser choice for performance reasons, although CF5 UDFs are CFSCRIPT only, so you can't do everything you might need to.
--- Barney Boisvert, Senior Development Engineer AudienceCentral [EMAIL PROTECTED] voice : 360.756.8080 x12 fax : 360.647.5351 www.audiencecentral.com > -----Original Message----- > From: Michael E. Carluen [mailto:[EMAIL PROTECTED] > Sent: Friday, June 13, 2003 4:05 PM > To: CF-Talk > Subject: Using a custom tag within the same custom tag > > > I was wondering if there is any risk on a custom tag that > essentially uses > itself. > > Example: > > On test1.cfm > .... > <cf_foo_tag variable="1"> > > > On foo_tag.cfm > .... > <cf_foo_tag variable="100"> > > > I am using this method to have an unlimited cascading effect on a set of > parent/child data, and it works. I was just wondering if am exposing > myself to any potential problems. > > Thanks gang! > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

