Parse Bool
  • 06 Nov 2023
  • 1 Minute to read
  • Dark
    Light

Parse Bool

  • Dark
    Light

Article summary

Step Details

Introduced in Version4.0.0
Last Modified in Version8.16.0
Modification DetailsMoved the location of Step from Designer Entities > Rules to Data > Rules.
LocationData > Rules

The "Parse Bool" step converts string input values into their corresponding boolean representations. This step is useful with data that contains different textual representations of Boolean values. It accepts a string as input and returns a Boolean value, 'true' or 'false,' based on the interpretation of the provided string.

The "Parse Bool" step is case-insensitive, so it will treat input values like 'true,' 'True,' 'tRuE,' and 'TRUE' all the same and convert them to 'true.' The same applies to 'false' values.



Properties

Inputs

PropertyDescriptionData Type
To StringString to convert to boolean object.
Supported Input Values:
  • Y: This will be converted to 'true'.
  • N: This will be converted to 'false'.
  • T: This will be converted to 'true'.
  • F: This will be converted to 'false'.
  • True: This will be converted to 'true'.
  • False: This will be converted to 'false'.
  • Yes: This will be converted to 'true'.
  • No: This will be converted to 'false'.
  • 0: This will be converted to 'false'.
  • 1: This will be converted to 'true'.
  • ok: This will be converted to 'true'.
String

Outputs

PropertyDescriptionData Type
OutputParsed boolean objectObject



Feature Changes

DescriptionVersionDeveloper Task
Moved the location of Step from Designer Entities > Rules to Data > Rules.
8.16[DT-037337]

Was this article helpful?

What's Next