Method to convert a string to a boolean. This method is the equivalent of the function string_toBoolean()
var mystring = "0"; var boolean = mystring.toBoolean();
This method has no parameters.
Value | String Value |
---|---|
true | true or 1 |
false | false or 0 |
null | All values not listed above. Could not convert to boolean. |