--- title: "Use the ENDSWITH Function to Validate Ending Text" slug: "endswith-function" description: "Learn to use the ENDSWITH function to check if a Text ends with specific characters, allowing you to validate and organize Text entries in Pigment. " updated: 2025-05-30T09:42:24Z published: 2025-08-22T10:57:28Z canonical: "kb.pigment.com/endswith-function" --- > ## Documentation Index > Fetch the complete documentation index at: https://kb.pigment.com/llms.txt > Use this file to discover all available pages before exploring further. # ENDSWITH function ## ​​​Description Determines whether a Text ends with a given Text. ## Syntax `ENDSWITH(End Text, Text to Search [, Is Case Sensitive])` ## Arguments | Argument | Type | Dimensions | Description | | --- | --- | --- | --- | | *End Text* (required) | Text | Any Dimensions | End text to find. | | *Text to Search* (required) | Text | No Dimension or Dimensions of *End Text* | Text to search in. | | *Is Case Sensitive* (optional) | Boolean | No Dimension or Dimensions of *End Text* | Whether the search is done with case sensitivity. By default, the search is not case sensitive. | ## Returns | Type | Dimensions | | --- | --- | | Boolean | Dimensions of *End Text* | `TRUE` if *Text to Search* ends with *End Text*. `FALSE` if *Text to Search* does not end with *End Text.* ## Examples | Formula | Result | Description | | --- | --- | --- | | `ENDSWITH(“bc”, “abc”)` | `TRUE` | The Text “abc” ends with “bc”. | | `ENDSWITH(“b”, “abc”)` | `FALSE` | The Text “abc” does not end with “b”. | | `ENDSWITH(“C”, “abc”)` | `TRUE` | The search is not case sensitive by default. Searching for the Text “C” is equivalent to searching for the Text “c”. | | `ENDSWITH(“C”, “abc", TRUE)` | `FALSE` | The search is case sensitive. “abc” does not end with “C”. | ## See also Related articles: [FIND](/v1/docs/find-function), [CONTAINS](/v1/docs/contains-function), [STARTSWITH](/v1/docs/startswith-function) > [!TIP] > More of a hands-on learner? > > Talk to your Customer Success Manager about downloading the Functions and Modifiers in Pigment Application into your workspace. It includes examples of every formula and modifier in Pigment!