# text.ends_with · Rell standard library · Chromia Docs (concept)

> pure function ends_ with(suffix: text ): boolean Checks if this text ends with the specified suffix. Note that for all texts t , t.ends_with('') is true, a

Source: https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/text/ends_with/

FUNCTION

# text.ends\_with

```signature
pure function ends_with(suffix: text): boolean
```

Checks if this text ends with the specified suffix.

Note that for all texts `t`, `t.ends_with('')` is true, and for all texts `u` and `v` such
that `u == v`, `u.ends_with(v)` is true.

**Parameters**

* **suffix** — the suffix to check

**Returns**

true if this text ends with the specified suffix, false otherwise

Since 0.9.0

[View this page on docs.chromia.com](https://docs.chromia.com/pages/rell-stdlib/-rell%20-system%20-library/%5Broot%5D/text/ends_with.html)Generated API reference, mirrored from the live docs
