forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcontains.lcdoc
More file actions
49 lines (32 loc) · 1.16 KB
/
contains.lcdoc
File metadata and controls
49 lines (32 loc) · 1.16 KB
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
41
42
43
44
45
46
47
48
Name: contains
Type: operator
Syntax: <string> contains <substring>
Summary:
Compares two <string|strings> and <evaluate|evaluates> to true if the
first contains the second, false if not.
Introduced: 1.0
OS: mac, windows, linux, ios, android
Platforms: desktop, server, mobile
Example:
"ABC" contains "A" -- evaluates to true
Example:
"123" contains "13" -- evaluates to false
Parameters:
string (string):
The string and substring are both strings of characters, or expressions
that evaluate to strings.
substring (string):
Description:
Use the <contains> <operator> to find out whether a <string> contains a
substring.
If the <substring> is found in the <string>, the <contains> <operation>
evaluates to true.
If each character of the <substring> can be found in the <string>, but
the <characters> are separated, the <contains> <operation>
<evaluate|evaluates> to false.
References: operator (glossary), operation (glossary),
evaluate (glossary), string (glossary), string (keyword),
characters (keyword), = (operator), <> (operator), is in (operator),
is among (operator), is not among (operator), ends with (operator),
is not in (operator)
Tags: text processing