---
schema_version: "1"
id: 1490cc921efda6ec8da0a5d82d356fd68c1ce583185c6e9d647bdddcf0b8a2a6
title: ends_with()
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/analytics/bi_dev_guide_saql/guides/reference/bi-saql-functions-string-ew.md
canonical_url: https://developer.salesforce.com/docs/analytics/bi-dev-guide-saql/guide/bi-saql-functions-string-ew.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 8f4b5019db0e8881f8f98615afcb37d1f4ec826120e58fff11307dc131b3e171
products:
  - Analytics SAQL Developer Guide
  - analytics
---

# ends_with()

Returns `true` if the string ends with the specified characters.

## Syntax

`ends_with(string, suffix)`

## Usage

Returns `true` if ends with _suffix_, otherwise returns `false`. String comparison is case-sensitive. If any of the parameters are `null`, then the function returns `null`. If _suffix_ is an empty string, then the function returns `null`.

## Example

```nolang
ends_with("FIT", "T") == true
ends_with("FIT", "BIT") == false
```
