Description
This activity searches through a text and checks if it contains a string. If the initial text contains a string, then the 'Yes' branch will be executed. Else the 'No' branch will be executed.
Parameters
-
Set a value: set an input text to search inside of it.
-
Save the previous step result: chooses the previous activity result as a text.
-
Calculate a value: use JS to form a text.
-
Set a value: set a string to look for.
-
Save the previous step result: chooses the previous activity result as a string.
-
Calculate a value: use JS to form a string.
Check this checkbox if you need to perform a case sensitive search. In this checkbox is checked, and you look for ElectroNeek
, but the initial text contains only electroneek
, the 'No' branch will be executed.
Usage example
This activity is useful if you need to check for some keywords in a text. For example, after you've recognized a document you can check if there an invoice
keyword in it. If the document contains this keyword, then you can classify it as an invoice.