# CONTAINS function

## `CONTAINS` function

| Function Name | Description | Usage | Input parameter | Return value |
|---|---|---|---|---|
| `CONTAINS` | Checks the occurrence of the specified value in a given string or string array. | `CONTAINS(value)` | Value to search. | A boolean. Returns TRUE if a match is found and FALSE otherwise. |

## Supported data type


The `CONTAINS` function supports the following data types:

- Boolean array
- Double array
- Integer array
- String array
- String

## Example: Check the occurrence of a sequence of characters in a string


**Sample data** : `$var1$ = "Hello Apigee Integrations"`


**Usage** : `$var1$.CONTAINS("xyz")`
Check the occurrence of `xyz` in var1.


**Output** : `FALSE`

## Recommendation

- Learn how to add and configure a [Data Mapping task](https://docs.cloud.google.com/application-integration/docs/configure-data-mapping-task.md.txt)