Subscribe

UiPath Apps

The UiPath Apps Guide

Function: Contains

Check to see if a string contains a text fragment

Use this function to check if a string contains a specific fragment. A true/ false value is returned as output.

This function performs a case insensitive check.

SyntaxDescriptionExample
Contains(Text, Fragment)Returns true if a string contains a text fragment.



Arguments

For more information on arguments, see the table below.

ArgumentTypeDescription
TextRequiredThe text to examine in search of the Fragment.
FragmentRequiredThe text to search for in Text.

Examples

  • Contains("Blueberry”, "blue"): True
  • Contains("Blueberry”, "Berry"): True
  • Contains("Blueberry”, "Raspberry"): False
  • Contains("My favorite jam is Apricot”, "Apricot"): True

Updated about a year ago

Function: Contains


Check to see if a string contains a text fragment

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.