actionscript 3 - How can I convert string to boolean? -


i have code:

trace(arr[0][2]); cb.selected = boolean(arr[0][2]); 

this outputs "false" checkbox selected. how can fix this?

this expected behaviour. using the top level function boolean / explicitly converting different type.

if argument non-empty string return true.

why have string in first place? why don't store boolean values?


Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -