2 Replies Latest reply on Apr 11, 2013 12:09 PM by Adam Cameron.


    community help Level 1
        • 1. Re:  cfswitch
          Miguel-F Level 3

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

          • 2. Re:  cfswitch
            Adam Cameron. Level 5

            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.