Skip to main content

endsWith

Tests if a string ends with the given suffix. Returns a Boolean true or false.

The test is case-sensitive.

Parameters

  • STRING (string)

    The string to test.

  • SUFFIX (string)

    The suffix to test for.

Examples

ATL in Script

Result

[[endsWith('The written word endures, the spoken word disappears', 's')]]

true

[[endsWith('The written word endures, the spoken word disappears', 'S')]]

false

[[endsWith('The written word endures, the spoken word disappears', 'disappears')]]

true