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
Post a Comment