# 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://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/FnIhChIkESywt0uV58ho/0.png)

**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://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/aX5N5QyU2IXEzxANF8gD/1.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 *CharsTolookFor* string is present within the *lookIn* string.

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/QyUYffuDO23Rh2CX8tL8/2.png)
