Rick Faircloth wrote:
> Can cfswitch tags not be nested inside cfif tags?
>
> Rick
The whole <cfswitch...> tag can be, but not just the first half.
I.E.
<cfif...
<cfswittch>...</cfswitch>
<cfelse>
<cfswitch>...</cfswitch>
</crif>
Allowed.
<cfif...
<cfswittch>
<cfelse>
<cfswitch>
</crif>
</cfswitch>
Not Allowed.
The quikest fix to what you are trying to do would be.
<cfswitch
expression(#iif(isDefined('url.property_type',de(url.property_type),de(form.property_type))#)
But this is they type of solution the usually quickly gets re-factored
into cleaner and simpler code.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:306256
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4