forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbegins-with.lcdoc
More file actions
41 lines (25 loc) · 926 Bytes
/
begins-with.lcdoc
File metadata and controls
41 lines (25 loc) · 926 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Name: begins with
Type: operator
Syntax: <string> begins with <prefix>
Summary:
The <begins with> operator takes two strings and returns true if the
second string matches the start of the first string.
Introduced: 2.9
OS: mac, windows, linux, ios, android
Platforms: desktop, server, mobile
Example:
"foobar" begins with "foo" -- evaluates to true
Example:
"foobar" begins with "food" -- evaluates to false
Parameters:
string (string):
prefix:
Description:
For the expression to evaluate to true the whole of <prefix> must be
present at the beginning of <string>. For example, if <prefix> has three
characters these must match the first three characters of <string> (in
order).
This operator takes into consideration the current value of the
<caseSensitive> <property>.
References: offset (function), length (function), ends with (operator),
contains (operator), caseSensitive (property), property (glossary)