ENDS_WITH_IGNORE_CASE

Description

Returns TRUE if the provided string ends with any of the specified compare_strings. The comparison is case-insensitive. Otherwise, returns FALSE.

Syntax

ENDS_WITH_IGNORE_CASE(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_IGNORE_CASE("Salesforce Platform", "platform") 
-- Returns TRUE (case-insensitive).
ENDS_WITH_IGNORE_CASE(Email, ".gov", ".edu")
-- Returns TRUE if Email ends with ".gov" or ".edu" in any case; otherwise, returns FALSE.