ENDSWITH function

Synopsis
This function returns whether a string matches the end of a specified string.
Variations
ENDSWITH(SearchedString, EndString)
Returns whether a string matches the end of the specified string.
Parameters
SearchedString

Specifies the string to be searched.

Supported types: String.
EndString

Specifies the string to for which to search. When EndString is empty, TRUE is always returned.

Supported types: String.
Returns
Returned types: Boolean.
Examples
1.

The following example searches the end of the string "Matrox Design Assistant" for "Assistant" and returns True.

ENDSWITH("Matrox Design Assistant", "Assistant")
2.

The following example searches the end of the string "Matrox Design Assistant" for "Design" and returns False.

ENDSWITH("Matrox Design Assistant", "Design")
3.

The following example searches the end of the string "Matrox Design Assistant" for "ASSISTANT" and returns False.

ENDSWITH("Matrox Design Assistant", "ASSISTANT")
4.

The following example searches the end of the string "Matrox Design Assistant" for an empty string and returns True.

ENDSWITH("Matrox Design Assistant", "")