public native Boolean(value as String) throws ValueException
Builds a Boolean from a textual representation.
Accepted values are lowercase true and false (case-sensitive). Surrounding ASCII whitespace is ignored.
| Parameter | Description |
|---|---|
value | the textual Boolean representation. |
assert Boolean("true") == true
assert Boolean("false") == false