StringEndsWithString |
Type | operator |
Dictionary | LCB |
Library | LiveCode Builder |
Syntax | <Source> ends with <Suffix>
|
Associations | com.livecode.char |
Summary | Determines whether Source ends with Suffix
|
Parameters | Name | Type | Description |
---|
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 | Name | Type | Description |
---|
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.
|
Tags | strings |