You can do this with cfmodule, but I don't think you can do it with cfx tags or custom tags... Looking through cf's source doesn't help either...
> -----Original Message----- > From: Claude Schneegans [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 27, 2006 6:03 PM > To: CF-Talk > Subject: Re: cfif inside cfx calls? > > >>I'm trying to do a cfx call with a cfif statement inside of it like > this > > You can't do it this way. <CFIF can be used inside HTML tags but not > CFML tags. > > However you can do what you want using the attributecollection structure, > to pass optional attributes to the tag, ie: > > <CFSET additionalAttribute = structNew()> > <CFIF arguments.trxType eq "R"> > <CFSET additionalAttribute.term = arguments.term> > </CFIF> > > <CFX_PAYFLOWPRO QUERY = "result" > CERTPATH = "#this.certPath#" > TRXTYPE = "#arguments.TRXTYPE#" > attributeCollection = #additionalAttribute#> > > -- > > _______________________________________ > REUSE CODE! Use custom tags; > See http://www.contentbox.com/claude/customtags/tagstore.cfm > (Please send any spam to this address: [EMAIL PROTECTED]) > Thanks. > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244943 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

