# 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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FcXlWSm8V6lWTxtdu2hrv%2F0.png?alt=media)

**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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FaO79f7oPo3Vh66PwksZY%2F1.png?alt=media)

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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FViuCa3CYlP4EmzSeyR9f%2F2.png?alt=media)
