ends with

Typeoperator
DictionaryLCS
LibraryLiveCode Script
Syntax
<string> ends with <suffix>
Summary

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

Introduced2.9
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Parameters
NameTypeDescription
string
suffix
Example
"foobar" ends with "bar" -- evaluates to true
"foobar" ends with "baz" -- evaluates to false
RelatedProperty: caseSensitive
Operator: begins with, contains
Function: offset, length
Glossary: property
Description

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.