you are incorrect. You do not need to have a default case... if you do not have a case
that matches your expression nothing happens.
<cfset name="ron">
<cfswitch expression="#name#">
<cfcase value="mike">hi mike</cfcase>
<cfcase value="earl">hi earl</cfcase>
</cfswitch>
nothing is output because ron has no case.
no error is given either, even though there is no default case.
Mike
-----Original Message-----
From: Robertson-Ravo, Neil (RX)
[mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 9:34 AM
To: CF-Talk
Subject: RE: Cfcase
With CFSWITCH, you must have a CFDEFAULTCASE and it must be the last entry
in the switch.
-----Original Message-----
From: Mark Leder [mailto:[EMAIL PROTECTED]
Sent: 06 March 2003 14:35
To: CF-Talk
Subject: Cfcase
Is it possible to place CFIF statements inside a CFCASE? When I do this, I
get an error that I can't have a CFCASE after a CFDEFAULTCASE, even though
there are no CFDEFAULTCASE statements in the code. Removing this CFIF
statement makes everything work ...
Thanks, Mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4