Text Starts With
Uncontrolled node
Overview
The Text Starts With node checks whether a given text string begins with a specified pattern and outputs a boolean result. This is useful for conditional logic, filtering, or validation workflows where you need to verify string prefixes.
Inputs
| Input | Type | Description | Default |
|---|---|---|---|
| Text | Text | The source text string to check. | - |
| Pattern | Text | The prefix pattern to look for at the beginning of the text. | - |
Outputs
| Output | Type | Description |
|---|---|---|
| Starts | Boolean | Returns true if the text starts with the pattern, otherwise false. |
Runtime Behavior and Defaults
This node runs automatically whenever its inputs change (uncontrolled behavior).
- Type Safety: If either the
TextorPatterninputs are not strings, the node outputsfalse. - Case Sensitivity: The check is case-sensitive. For example, "Hello" does not match "hello".
- Empty Strings: An empty pattern (
"") will returntruefor any text input, as all strings technically start with an empty string.
Example
Basic Usage
Connect a text source to the Text input and specify a pattern to check:
- Create a Text node with the value:
Hello World - Connect it to the Text input of the Text Starts With node
- Set the Pattern input to:
Hello - The Starts output will return:
true
Conditional Workflow
Use the output to drive conditional logic:
[Text Node: "Invoice_12345"]
|
v
[Text Starts With: Pattern="Invoice_"]
|
v
[If Node: Test=Starts output]
| |
true false
| |
[Process] [Skip]
In this example, the workflow branches based on whether a filename starts with "Invoice_".