# endswith

relationalai.semantics.std.strings

```python
endswith(s: StringValue, suffix: StringValue) -> Expression
```

Check whether `s` ends with `suffix`.

## Parameters

- `s` (`StringValue`) - The string to check.
- `suffix` (`StringValue`) - The suffix to check for.

## Returns

- `Expression` - An `Expression` that evaluates to `true` if `s` ends with `suffix`.

## Examples

Filter strings that end with a suffix:

```python
select(Person.name).where(strings.endswith(Person.last_name, "dottir"))
```

## Referenced By

1. [RelationalAI Documentation](/index.md)1) [Build With RelationalAI](/build/index.md)1. [Use advanced reasoning](/build/reasoning/index.md) / [Rules-based reasoning](/build/reasoning/rules-based/index.md)1) [Work with strings](/build/reasoning/rules-based/work-with-strings/index.md)1. [Filter facts with text conditions](/build/reasoning/rules-based/work-with-strings/index.md#filter-facts-with-text-conditions)
