CHECKS IF A STRING STARTS WITH A GIVEN SUBSTRING

Checks whether a string (haystack) begins with a specified substring (needle) and returns a boolean result. Use this worker in workflow branches where routing or filtering logic depends on a string prefix match.

When to use

Classification: process.

Tagged: boolean, match, prefix, process, scalar, starts_with, string, text.

Inputs

Label ID Type Default Required Description
Haystack haystack scalar The full string to inspect; provide any scalar text value that you want to test for a leading substring.
Needle needle scalar The prefix substring to look for at the start of the haystack; treated as a literal string (quote=1).

Outputs

Label ID Type Description
string_starts_with_output_1 string_starts_with_output_1 scalar Boolean-like scalar result (true/false) indicating whether the haystack string begins with the needle substring.

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_starts_with


Auto-generated from transformation schema. Worker id: string_starts_with. Schema hash: 95029ab82dc8. Hand-curated docs in workerexamples/ override this page when present.