Quantcast
Channel: Adobe Community : All Content - ColdFusion
Viewing all articles
Browse latest Browse all 5979

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

$
0
0

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.


Viewing all articles
Browse latest Browse all 5979

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>