ParseBoolean_v2 Op

ParseBoolean

parse boolean from string/number


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.


Full Name
  • Ops.Boolean.ParseBoolean_v2
Visibility
  • Core Op - visible for everyone
License
  • MIT
AuthorCreated
githubMaintained by Team


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.

Open In Editor

INPUT PORTS


String (String)

OUTPUT PORTS


Result (booleanNumber)

Changelog

Patches using ParseBoolean_v2

  • Examples
  • Public
  • My Patches