Skip to main content
Functions

Find words

Find words

Checks whether a text contains one or more specific words, returning true or false. Useful for filtering records, making decisions in the flow based on the content of a field or validating whether a piece of information is present before processing it.


Options

Original text

Enter the text where the search will be performed. It can be a fixed value, the return of a previous action or a variable.

Words to be found

Enter the list of words or excerpts to be searched for. Each item of the list is searched for independently within the text provided.

Returns

Custom code

js
actions["action-id"].contains // true if at least one word is found, false otherwise (Yes/No)

Field selection

  • contains — indicates whether the text contains at least one of the words provided (Yes/No)

Rules and Conditions

  • The Original text and Words to be found fields are required.
  • Returns true if at least one of the words of the list is found in the text.
  • The check is case-sensitive.