ENDS_WITH
Description
Returns TRUE if the provided string ends with any of the specified compare_strings. The comparison is case-sensitive. Otherwise, returns FALSE.
Syntax
ENDS_WITH(string, ...compare_strings) -> Boolean
Parameters
| Parameter | Data Type | Required | Description |
|---|---|---|---|
| string | String | Yes | The source string to evaluate. |
| … compare_strings | String | Yes | One or more strings to compare against the end of the source string. |
Examples
ENDS_WITH("Salesforce Platform", "platform")
-- Returns FALSE (no match, case-sensitive).ENDS_WITH(Website, ".org", ".gov")
-- Returns TRUE if Website ends with ".org" or ".gov"; otherwise, returns FALSE.