forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathis-in.lcdoc
More file actions
52 lines (31 loc) · 1009 Bytes
/
is-in.lcdoc
File metadata and controls
52 lines (31 loc) · 1009 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
41
42
43
44
45
46
47
48
49
50
51
Name: is in
Type: operator
Syntax: <subString> is in <string>
Summary:
Compares two <string|strings> and <evaluate|evaluates> to true if the
second contains the first, false if not.
Introduced: 1.0
OS: mac, windows, linux, ios, android
Platforms: desktop, server, mobile
Example:
"A" is in "ABC" -- evaluates to true
Example:
"123" is in "13" -- evaluates to false
Parameters:
substring (string):
The substring and string are both strings, or expressions that evaluate
to strings.
string (string):
Description:
Use the <is in> <operator> to find out whether a <string> contains a
substring.
The expression
firstString is in secondString
is equivalent to
secondString contains firstString
The <is in> <operator> is the logical inverse of the <is not in>
<operator>. When one is true, the other is false.
References: evaluate (glossary), string (glossary), operator (glossary),
string (keyword), is not in (operator), contains (operator),
is among (operator)
Tags: text processing