Evaluate is right - but when the evaluation is run, it's run in the
context of the custom tag, not the calling template. The tag has no idea
what get_data is unless you pass it. In your example below, you did not
pass it, so it can't use the query. Did you pass it and just forget to
include it in your example below? 

========================================================================
===
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: John Stanley [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 03, 2003 12:27 PM
> To: CF-Talk
> Subject: Custom Tag Question
> 
> 
> 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

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
                                

Reply via email to