Appearance
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
PassedorFailed. - 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
| Name | Type | Description |
|---|---|---|
| input | bool | The boolean value to be transformed. |
Outputs
| Name | Type | Description |
|---|---|---|
| output | string | The custom text corresponding to the input state. |
Parameters
| Parameter | Default | Valid values | Tunable |
|---|---|---|---|
| Positive value | OK | string | ❌ |
| Negative value | NOK | string | ❌ |
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.
Related links
Reference:
- NOT — inverts boolean values
- String Formatter — creates complex strings from multiple inputs