Contains Text Step
The Contains Text step checks if one piece of text is inside another. You can use this to check data or control how your process runs.
How to Use the Contains Text Step
Use this step to look for text within a variable.
Step 1: Add the Contains Text Step
- Drag the Contains Text step into your process.
- (Optional) Give the step a different name in the Step name field.
Step 2: Set Up Input Parameters
Source text variable (Required)
- This is the variable that holds the text you want to search through.
- Example: A variable called
emailBodythat has the full text of an email.
Text to contain (Required)
- This is the specific text you are looking for.
- You can type in the text directly or use an existing variable.
- Example: The words "invoice number" or a variable called
keyword.
Use regex (Required)
- Choose
T(True) if you want to use a regular expression for your search. - Choose
F(False) if you are looking for an exact text match. This is the default. - Regular expressions let you match more complex patterns.
Step 3: Define Output Parameter
Contains (Required)
- This is a new or existing True/False variable.
- It will store the search result:
Trueif the "Text to contain" is found in the "Source text variable".Falseif the "Text to contain" is not found.
- Example: A variable called
foundKeyword.
Parameters Explained
Step name (Optional)
- A custom name for this step in your process.
Source text variable (Required)
- The text variable where the search will happen.
Text to contain (Required)
- The text or variable you want to find.
Use regex (Required)
T(True): Turns on regular expression matching.F(False): Does an exact text search. This is the default.
Contains (Required)
- A True/False variable that stores
TrueorFalsebased on the search result.
Related Articles
- Define Variable Step - Robotiq.ai Help Center
- Set Variable Value Step - Robotiq.ai Help Center
- Get Subtext Step - Robotiq.ai Help Center
Need Help?
Can't find what you're looking for? Join the Robotiq Community to get help from other users and the Robotiq team.