*STRING CONTAINS ANY ONE *

Checks whether a haystack string contains at least one of several needle substrings, where the needles are supplied as a single delimited string. Use this worker anywhere a conditional branch or filter depends on a partial-string match against multiple alternatives.

When to use

Classification: process.

Tagged: conditional, contains, delimiter, filter, match, scalar, search, string.

Inputs

Label ID Type Default Required Description
Haystack haystack scalar — ✓ The source string to search within; provide any scalar text value that should be inspected for matching substrings.
Needle needle scalar — ✓ One or more substrings to search for, concatenated into a single string and separated by the chosen delimiter (e.g. ‘foo,bar,baz’ when delimiter is ‘,’).
Delimiter delimiter scalar — ✓ Single character or string used to split the needle value into individual search terms (e.g. ‘,’ or ‘/’); must match the separator used inside the needle input.

Outputs

Label ID Type Description
string_contains_any_one_output_1 string_contains_any_one_output_1 scalar Boolean-like scalar result (true/false or 1/0) indicating whether the haystack contained at least one of the delimited needle substrings.

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_any_one


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