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

ParameterData TypeRequiredDescription
stringStringYesThe source string to evaluate.
… compare_stringsStringYesOne 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.