Lingo Dictionary > S > starts |
![]() ![]() ![]() |
starts
Syntax
string1
starts
string2
Description
Operator; compares two strings to determines whether string1
starts with string2
(TRUE
or 1) or not (FALSE
or 0).
This is a comparison operator with a precedence level of 1.
Note: The string comparison is not case sensitive, but it is sensitive to diacritical marks; "a" and "A" are treated the same, but "A" and "Ä" are not.
Example
This statement reports in the Message window whether the word Macromedia starts with the string "Macro":
put "Macromedia" starts "Macro"
The result is 1, which is the numerical equivalent of TRUE
.
See also
![]() ![]() ![]() |