Livecode Wiki

The ends with operator takes two strings and returns true if the second string matches the end of the first string.Syntax:

<string> ends with <suffix>

Examples:

"foobar" ends with "bar" -- evaluates to true
"foobar" ends with "baz" -- evaluates to false

For the expression to evaluate to true suffix must match the end of string. For example, if suffix contains three characters these must match the the last three characters of string (in order).

This takes into consideration the value of the caseSensitive property.

Parameters:

  • string (string):
  • suffix:
  • Description:For the expression to evaluate to true suffix must match the end ofstring. For example, if suffix contains three characters these mustmatch the the last three characters of string (in order).

See also: contains (operator),caseSensitive property (property),