String to boolean
Description
Pure function parsing text as a boolean. Returns true for "true" (case-insensitive, whitespace trimmed); false for everything else.
When to use
Use String to boolean when a boolean flag arrives as text — for example, from an HTTP form parameter or a CSV column. The node accepts “true”, “TRUE”, “True”, and any mixed-case variant; all other values, including “1”, “yes”, and “on”, map to false. If you need a broader set of truthy values, use Lowercase followed by Equals or String contains? before branching.
Pins
Input pins
| Pin | Type | Default | Notes |
|---|---|---|---|
| Text | string | false | The string to parse. Trimmed before comparison; "true" (any case) maps to true; everything else maps to false. |
Output pins
| Pin | Type | Notes |
|---|---|---|
| Result | boolean | True only if the trimmed, case-folded text equals "true"; false for all other values. |
Example
Honor a “sendNotification” flag passed as a query parameter. Wire the parameter string
into the Text input of String to boolean, then connect the Result output to the
Condition input of Branch. The True execution output fires when the value is "true",
"True", or "TRUE"; any other value, including a missing parameter that defaults to
an empty string, takes the False path.