You are here

toBoolean

toBoolean(string) returns a Boolean object from a string value.

Parameters

booleanString
A boolean string, true or false.

Returns

Boolean value

Example

  var booleanString = "true";

  model.result = utils.toBoolean(booleanString);        
      

The preceding code snippet would return a boolean value for result of true.

Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.