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);

Parameters

valuestring|number|booleanvalue to test

Returns

booleantrue for: true, 1, "true", "1", "yes", "y"

Example

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

Back to top