# ENDS_WITH

Returns a boolean value indicating whether a keyword string ends with a specified suffix string.

## Syntax

`ENDS_WITH(str, suffix)`

### Parameters

#### str

The string expression to evaluate. If this value is `null`, the function returns `null`.

#### suffix

The string expression to check as the suffix. If this value is `null`, the function returns `null`.

## Examples

Determines whether each employee's last name ends with the letter "d" and adds the result as a new column.

```esql
FROM employees
| KEEP last_name
| EVAL ln_E = ENDS_WITH(last_name, "d")
```
