# ContainsAnyChar (String)

| **Name**    | ***ContainsAnyChar***                                                                                                                                       |
| ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Syntax      | ContainsAnyChar (String charsTolookFor, String lookIn)                                                                                                      |
| Purpose     | To determine whether any character in charsTolookFor string exists in lookIn string.                                                                        |
| Description | Returns true if any character in charsToLookFor string exists in the LookIn string. Otherwise returns false. **Note:** This function is NOT case sensitive. |
| Return Type | Boolean                                                                                                                                                     |
| Parameters  | <p>CharsTolookFor \[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%2FkhYsXeecaZzDSxY3hae8%2F0.png?alt=media)

**Example**

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

Where,

*CharsTolookFor* = # @ab

*lookIn* = 1234 @# ABC

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FZieewyEeXZv9u63S3ydU%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 *CharsTolookFor* string is present within the *lookIn* string.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FNXCenTF3uM4h8Es1t0uM%2F2.png?alt=media)
