ParseBoolean_v2 Op
parse boolean from string/number
parse boolean from string/number
Summary (oneliner)
Converts a string / number to a boolean, outputs false when value equals 0, false, null or undefined.
Please note that entering something in the input box will most likely result in true, because when you enter something it will be interpreted as a string / number.
- Ops.Boolean.ParseBoolean_v2
- Core Op - visible for everyone
- MIT
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
Example Patch Parse Boolean Example
Parse a selected string as a boolean. "0" and "false" produce false; "1", "true", "yes", and "no" produce true. The string "no" is nonempty and is not treated as false by this op.