Page tree
Skip to end of metadata
Go to start of metadata

The boolean.toString() method returns "1" or "0" depending on the value of the boolean.

Example
var boolval = true;
 
return boolval.toString();
// returns "1"