# 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://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/0%20\(55\).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://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/1%20\(56\).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://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/2%20\(56\).png)
