Andrew,
Thank you, I tried that, but got the error:
Error: Context validation error for tag cfswitch. The start tag must have a
matching end tag. An explicit end tag can be provided by adding </cfswitch>.
If the body of the tag is empty you can use the shortcut <cfswitch .../>.
The CFML compiler was processing:
* a cfdefaultcase tag beginning on line 26, column 26.
The error occurred on line -1.
I copied it right from your e-mail, and it does have the end tag.
But, maybe I didn't give enough information.
The user clicks one link and gets taken to the category 103 listing or
another and gets taken to the 100 listing.
I'll give all the code if you wish...
Lisa
At 01:23 PM 10/16/05 +1000, you wrote:
>Lisa,
>
>The code snippet you posted is incorrect. You might need to post everything,
>but before you go that far the cfif/cfelse works like this.
>
><cfif condition>
> Condition true
><cfelse>
> Condition false
><cfelseif new condition>
> New true condition
><cfelseif another new condition>
> Another New true condition
></cfif
>
>But if it was me..
>
><cfswitch expression="#url.cat_id#">
> <cfcase value="103"> Is 103 </cfcase>
> <cfcase value="100,106"> Is 100 or 106</cfcase>
> <defaultcase> Default </cfdefaultcase>
></cfswitch>
>
>Regards,
>Andrew Scott
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get the mailserver that powers this list at
http://www.houseoffusion.com/banners/view.cfm?bannerid=17
Message: http://www.houseoffusion.com/lists.cfm/link=i:15:1444
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