--- title: "ends-with()" slug: "string-ends-with" updated: 2026-08-17T06:16:48Z published: 2026-08-17T06:16:48Z canonical: "docs.lobstersoftware.com/string-ends-with" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # ends-with() This function returns "*true"* if text **a** ends with the character sequence **b**, otherwise "*false"* is returned. ## Parameters | Parameter | Description | | --- | --- | | a | Text. | | b | Suffix to check for. | ## Examples | Parameter a | Parameter b | Result | | --- | --- | --- | | abcdef | 1 | false | | abcdef | f | true | | abcdef | def | true | | abcdef | abcdef | true | | abcdef | abcdefg | false |