StringBeginsWithString

Typeoperator
DictionaryLCB
LibraryLiveCode Builder
Syntax
<Source> begins with <Prefix>
Associationscom.livecode.char
Summary

Determines whether Source begins with Prefix

Parameters
NameTypeDescription
Prefix

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 begins with "abc" then
	put "success" into tResult
end if	
Values
NameTypeDescription
return

Returns true if Source begins with Prefix.

Description

Source begins with Prefix if and only if the chars of Prefix occur as an initial subsequence of the chars of Source.

Note: Since "" is an initial substring of every string, every string begins with the empty string.

Tagsstrings