Vicky,
Thank you.
I'm getting the same error:
Error: Context validation error for tag CFELSE. The tag must be nested
inside a CFIF tag.
The error occurred on line -1.
Lisa
At 11:37 PM 10/15/05 -0400, you wrote:
><CFIF IsDefined("url2.cat_id") IS True>
>
>For a start, you don't need the "is true".
>
>isDefined()   works like this:
>
><cfif isDefined("myvar")>
>    do this
></cfif>
>
>if you are looking for the opposite it would be
>
><cfif not isDefined("myvar")>
>    do this
></cfif>
>
>You also don't need quotes around numbers.
>
>
>
>As for the overall code, try this:
>
><cfset mode = "directory">
><cfif isDefined("url2.cat_id")>
>       <cfif #url2.cat_id# eq 100>
>               <cfset mode = "subcategory">
>      <cfelse>
>               <cfset mode = "category">
>       </cfif>
></cfif>
>
>
>
>
>
><CFSET mode = "directory">
><CFIF IsDefined("url2.cat_id") IS True>
>       <CFIF #url2.cat_id# IS "100">
>               <CFSET mode = "subcategory">
><CFELSE>
><CFSET mode = "category">
></CFIF>
></CFIF>
>
>
>
>
>




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:15:1445
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to