Fixed
Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Imported User 82
Imported User 82Priority
Labels
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Created 3 March 2015 at 15:53
Updated 21 May 2024 at 23:22
Resolved 21 May 2024 at 23:22
The docs say:
*Any CFML expression that yields a scalar value. CFML converts integers, real numbers,
Booleans, and dates to numeric values.*
This sample returns "don't know", but should return "it's true"
```
<cfset test = true>
<cfswitch expression="#test#">
<cfcase value="1">
<cfoutput>it's true</cfoutput>
</cfcase>
<cfcase value="0">
<cfoutput>it's false</cfoutput>
</cfcase>
<cfdefaultcase>
<cfoutput>don't know</cfoutput>
</cfdefaultcase>
</cfswitch>
```