Status/Resolution/Reason: Closed/Won't Fix/NotWorthEffort
Reporter/Name(from Bugbase): Aaron Martone / Aaron Martone (Aegis Kleais)
Created: 12/18/2013
Components: Core Runtime
Versions: 10.0
Failure Type: Enhancement Request
Found In Build/Fixed In Build: - /
Priority/Frequency: Trivial / Unknown
Locale/System: English / Windows 7 SP1 64-bit
Vote Count: 0
This may or may not be a good idea, all depending on how you code, but like how there is a CFCATCH scope available to caught exceptions, many times I find myself performing an in-depth equation for the expression of <cfswitch>. It would be nice if a temporary scope could exist for the duration of the <cfswitch> that allows me to quickly reference the matched value. ie:
<cfswitch expression="#listFindNoCase( listLast( cgi.http_host, '.' ), 'dev' )#">
<cfcase value="dev,stag">You are a non-public environment, the: #cfcase.value# environment.</cfcase> <!--- cfcase.value would be either 'dev' or 'stag'. --->
<cfdefaultcase>You are on a public environment, the: #cfcase.value# environment.</cfdefaultcase>
</cfswitch>
It would also exist for cfscript use as well.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3686134
External Customer Info:
External Company:
External Customer Name: Aegis Kleais
External Customer Email:
External Test Config:
Attachments:
Comments: