# endsWith {#endswith}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`endsWith(X, str)`

## Arguments {#arguments}

**X** is a STRING scalar/vector.

**str** is a STRING scalar/vector.

## Details {#details}

Check if *X* ends with *str*. If yes, return true; otherwise, return false.

## Examples {#examples}

```
endsWith('ABCDEF!', "F!");
// output: true

endsWith('ABCDEF!', "E!");
// output: false
```

