EndsWithBytes

Typeoperator
DictionaryLCB
LibraryLiveCode Builder
Syntax
<Target> ends with <Needle>
Associationscom.livecode.byte
Summary

Determines whether Target ends with Needle.

Parameters
NameTypeDescription
Needle

An expression which evaluates to binary data.

Target

An expression which evaluates to binary data.

Values
NameTypeDescription
return

True if the bytes of Needle occur as a final subsequence of the bytes of Target, and false otherwise.

Description

Note: Since the empty data is a final subsequence of every sequence of bytes, every sequence of bytes ends with the empty data.

Tagsbinary