ENDS_WITH

Returns true if the first string ends with all the characters of the second string.

Usage

ENDS_WITH(source, match, ignoreCase)

Parameters

source

String

The string to search.

match

String

The string to match.

ignoreCase

Boolean

Pass true if the case doesn’t matter, false otherwise.

Returns

Boolean

Examples

ENDS_WITH(‘Hello’, ‘lo’, true)

true

ENDS_WITH(‘Hello’, ‘LO’, true)

true

ENDS_WITH(‘Hello’, ‘great’, true)

false

Remarks

ENDS_WITH(“Hello”, “LO”, true) returns trye because the different case is ignored. ENDS_WITH(“Hello”, “LO”, false) would return false.