I don't think so. That would execute when the tag calls. I _believe_ he wants the condition to be run inside the tag, in this case, every time for every row in a query.
======================================================================== === Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc (www.mindseye.com) Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia) Email : [EMAIL PROTECTED] Blog : www.camdenfamily.com/morpheus/blog Yahoo IM : morpheus "My ally is the Force, and a powerful ally it is." - Yoda > -----Original Message----- > From: Bryan Love [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 03, 2003 2:22 PM > To: CF-Talk > Subject: RE: Custom Tag Question > > > Actually, you have two choices here: > > you can either use pound signs: > <cf_thistag condition="#get_data.summary_id# eq 263012"> > (this will dereferenc get_data.summary_id before passing it > to the tag) > > or reference the caller scope inside the tag: > > ..... > <cfif evaluate("caller.#attributes.condition#")> > ..... > > +-----------------------------------------------+ > Bryan Love > Database Analyst > Macromedia Certified Professional > Internet Application Developer > TeleCommunication Systems > [EMAIL PROTECTED] > +-----------------------------------------------+ > > "...'If there must be trouble, let it be in my day, that my > child may have peace'..." > - Thomas Paine, The American Crisis > > "Let's Roll" > - Todd Beamer, Flight 93 > > > > -----Original Message----- > From: Randell B Adkins [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 03, 2003 11:58 AM > To: CF-Talk > Subject: Re: Custom Tag Question > > > What that is doing os converting the "get_data.summary_id" to > the actual value before it is past over to the customtag. > > One being a string value and the other a value. > > Might try to convert the ID to a VAL within the call to the customtag > > <cf_thistag condition="VAL(get_data.summary_id) eq 263012"> > > > Not tried it but worth a shot.. > > > >>> [EMAIL PROTECTED] 06/03/03 02:26PM >>> > All, > I need to pass a portion of a conditional statement to > a custom tag, like > > <cf_thistag condition="get_data.summary_id eq 263012"> > > then in the custom tag I wanna do something like > > <cfoutput query="attributes.queryname"> > <cfif attributes.condition neq ""> > <cfif #attributes.condition#> > then do this > <cfelse> > otherwise do this > </cfif> > <cfelse> > do this > </cfif> > </cfoutput> > > I have tried: > <cfif attributes.condition> > <cfif #attributes.condition#> > <cfif #Evaluate(attributes.condition)#> > adding the cfif into the attribute like <cf_thistag > condition="cfif > get_data.summary_id eq 263012"> > and then doing <#Evaluate(attributes.condition)#> > or > <#attributes.condition#> > > no luck, i keep getting an error saying cannot convert the > value "263012 eq 263012" to a boolean. Or sometimes I get an > incomplete cfif tag error. > > I am using MX by the way. > > Is this process just not possible in Cold Fusion? > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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 Host with the leader in ColdFusion hosting. Voted #1 ColdFusion host by CF Developers. Offering shared and dedicated hosting options. www.cfxhosting.com/default.cfm?redirect=10481 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4