Copy link to clipboard
Copied
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7fe5.html
Copy link to clipboard
Copied
I am not sure that the issue described under the History ColdFusion 8 section is accurate. I still get the context validation error when defining <cfcase value="10"> and <cfcase value="010">. Furthermore, the <cfswitch> is evaluating the value of "010" as equal to "10".
Copy link to clipboard
Copied
The situation exactly as described in the notes has been solved. However CF still converts strings to numbers in situations as per Miguel's observation.
Just leave them as bloody strings until there's a REASON to treat them as a number. And, what's more "010" is NOT a number, and should never be treated as one.
--
Adam