StringEndsWithString

Typeoperator
DictionaryLCB
LibraryLiveCode Builder
Syntax
<Source> ends with <Suffix>
Associationscom.livecode.char
Summary

Determines whether Source ends with Suffix

Parameters
NameTypeDescription
Suffix

An expression which evaluates to a string.

Source

An expression which evaluates to a string.

Example
variable tVar as String
variable tResult as String
put "abcde" into tVar
if tVar ends with "cde" then
	put "success" into tResult
end if	
Values
NameTypeDescription
return

Returns true if Source ends with Suffix.

Description

Source ends with Suffix if and only if the chars of Suffix occur as a final subsequence of the chars of Source.

Note: Since "" is a final substring of every string, every string ends with the empty string.

Tagsstrings