# EndsWith (String)

| **Name**    | ***EndsWith***                                                                                                        |
| ----------- | --------------------------------------------------------------------------------------------------------------------- |
| Syntax      | EndsWith (String str, String value)                                                                                   |
| Purpose     | To determine whether a string ends with a specified value.                                                            |
| Description | Returns true if str ends with specified value. Otherwise returns false. **Note:** This function is case sensitive.    |
| Return Type | Boolean                                                                                                               |
| Parameters  | <p>str \[System.String] – String that will be searched</p><p>value \[System.String] – Value that will be searched</p> |

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

**Example**

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

Where,

*str* = ABCDE

*value* = CDE

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2F5dlJPH5TScYUUjIJP90u%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 *str* string does end with the *value* string.

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