Check documentation for the latest version of dhtmlxSuite s2b DHTMLX Docs

s2b

converts string to boolean and returns true|false (useful for XML)

boolean s2b(string|number|boolean value);
valuestring|number|booleanvalue to test
booleantrue for: true, 1, "true", "1", "yes", "y"

Example

var t = window.dhx.s2b("yes"); // returns true

Back to top