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