Piecewise

Build chat bots with blocks

text (haystack) contains (needle)

In the toolbox

Determine whether text (the haystack) contains a text fragment (the needle).

Parameters

Parameter name Parameter type Required? Description
haystack String The text to search in.
needle String The text to search for.

Output

Boolean