Skip to content

Boolean to Text

Overview

The Boolean to Text node converts boolean values into custom text strings. It is typically used to create human-readable status labels for dashboards or reporting.

Use Boolean to Text when:

  • Displaying product check results, for example Passed or Failed.
  • Translating binary states into specific keywords for further processing.

💡 Tip

While the output is a string, ensure any following nodes are configured to handle text data rather than boolean flags.

Inputs

NameTypeDescription
inputboolThe boolean value to be transformed.

Outputs

NameTypeDescription
outputstringThe custom text corresponding to the input state.

Parameters

ParameterDefaultValid valuesTunable
Positive valueOKstring
Negative valueNOKstring

Positive value

The text to be output when the input is true.

Negative value

The text to be output when the input is false.

Example

Quality inspection labeling

In the flow, a comparison node evaluates whether a product meets requirements. The node result is passed to boolean to text node to generate a label for a dashboard and reporting.

Configuration:

  • Positive value: PASS
  • Negative value: FAIL

Result: An input of true results in the string PASS, while false results in FAIL.

Reference:

  • NOT — inverts boolean values
  • String Formatter — creates complex strings from multiple inputs