Skip to main content
This topic has been closed for replies.

1 reply

Miguel-F
Inspiring
April 11, 2013

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".

Inspiring
April 11, 2013

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