At 10:57 AM 25/11/2009, Ian Skinner wrote:
><cffunction name="it" output="yes"> > <cfargument name="depth" type="numeric" required="yes"> > <cfargument name="answerKey" type="string" required="no" default=""> > > <cfset var i = 0> > <cfif depth-- GT 0> > <cfloop from="0" to="1" index="i"> > #it(depth,answerKey & ' ' & yesNoFormat(i))# > </cfloop> > <cfelse> > #answerKey#<br/> > </cfif> ></cffunction> > ><cfoutput>#it(22)#</cfoutput> > >I leave it to somebody else to run the code to generate the 4,194,304 >combinations, but it works well up to 10 'questions'. Awesome. I think I'll generate 10 questions and then ask if he wants to take it all the way up to 22. Thanks for doing that. T ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328672 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4