Skip to main content
Roberty Studio
RPAFunctions

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​

Javascript code​

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

Field selection​

  • contains — indicates whether the text contains at least one of the words provided (Boolean)

Rules and Conditions​

  • The Original text field is required. If the Words to be found list is empty, the return is false.
  • Returns true if at least one of the words of the list is found in the text.
  • The check is case-sensitive.