# Contains (String)

| **Name**    | ***Contains***                                                                                                                          |
| ----------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| Syntax      | Contains (String lookFor, String lookIn)                                                                                                |
| Purpose     | To determine whether lookFor string exists in lookIn string.                                                                            |
| Description | Returns true if the lookFor string exists within the lookIn string. Otherwise returns false. **Note:** This function is case sensitive. |
| Return Type | Boolean                                                                                                                                 |
| Parameters  | <p>lookFor \[System.String] – String to search for</p><p>lookIn \[System.String] – String to search in</p>                              |

![](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/0%20\(56\).png)

**Example**

In this example, we are passing the required parameters to the function transformation object using a *Variables* object.

Where,

*lookFor* = GH

*lookIn* = ABCDEFGH

![](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/1%20\(57\).png)

Right-click on the function transformation object and select *Preview Output.* You can see that Astera Data Stack has returned True, indicating that the the *lookFor* string is present within the *lookIn* string.

![](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/2%20\(57\).png)
