10 Replies Latest reply on Jul 19, 2017 9:17 AM by Carl Von Stetten

    IsBoolean() returning true for "123D   ", but false for "123D"?

    yui8979 Level 1

      Hi,

       

      I encountered a very strange occurance where

       

      - IsBoolean("123D")  returned false

      while

      - IsBoolean("123D   ") return true

       

      The difference in the first and example is additional spaces in the 2nd example. One would expect both results to return false.

       

      Can please explain why the 2nd example returns true? It is perplexing to me.

       

      Coldfusion 9.0.1.