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

Builds a Boolean from a textual representation.

Accepted values are lowercase true and false (case-sensitive). Surrounding ASCII whitespace is ignored.

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