klyn.Boolean.Boolean
constructor
public native Boolean(value: String) throws ValueException
Description

Builds a Boolean from a textual representation.

Accepted values are true and false.

Throws
  • ValueException if the input is not a valid Boolean.
Example
assert Boolean("true") == true
assert Boolean("false") == false