BeginsWithBytes

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

Determines whether Target begins 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 an initial subsequence of the bytes of Target, and false otherwise.

Description

Note: Since the empty data is an initial subsequence of every sequence of bytes, every sequence of bytes begins with the empty data.

Tagsbinary