STRING CONTAINS¶
Checks whether a given string (haystack) contains a specified substring (needle) and returns a boolean result. Use this worker in workflows that need conditional branching or filtering based on substring presence.
When to use¶
Classification: process.
Tagged: boolean, contains, match, process, scalar, search, string, substring.
Inputs¶
| Label | ID | Type | Default | Required | Description |
|---|---|---|---|---|---|
| Haystack | haystack | scalar | — | ✓ | The full string to search within; provide any plain-text scalar value (e.g. a filename, label, or message) that will be inspected for the needle substring. |
| Needle | needle | scalar | — | ✓ | The substring to look for inside the haystack; supply the exact character sequence to match — the search is case-sensitive and no wildcards are supported. |
Outputs¶
| Label | ID | Type | Description |
|---|---|---|---|
| string_contains_output_1 | string_contains_output_1 | scalar | Boolean-like scalar result (true/false or 1/0) indicating whether the needle was found within the haystack; use this value to drive conditional branching in downstream workflow nodes. |
Disciplines¶
- platform.workflow
Runnable example¶
A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: /api/workflow/example?id=string_contains
Auto-generated from transformation schema. Worker id: string_contains. Schema hash: b189fd5d46a6. Hand-curated docs in workerexamples/ override this page when present.