forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathis-among.lcdoc
More file actions
50 lines (31 loc) · 1.34 KB
/
is-among.lcdoc
File metadata and controls
50 lines (31 loc) · 1.34 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
49
Name: is among
Type: operator
Syntax: <valueToFind> is among the {paragraphs | sentences | lines | items | words | segments | trueWords | tokens | codePoints | codeUnits | bytes} of <stringToSearch>
Summary:
Evaluates to true if a chunk is equal to one of the chunks in a string,
false otherwise.
Introduced: 1.0
OS: mac, windows, linux, ios, android
Platforms: desktop, server, mobile
Example:
"Hello" is among the words of "Hello World" -- evaluates to true
Example:
"Hell" is among the words of "Hello World" -- evaluates to false
Parameters:
valueToFind (string):
stringToSearch (string):
Description:
Use the <is among> operator to find out whether a string exists as an
entire word, item, or line of another string.
The <valueToFind> must be a single word, item, or line (whichever chunk
type you have specified). If you specify a string containing more than
one chunk, the <is among> operator evaluates to false, even if all the
chunks are in the <stringToSearch>.
The <is among> operator is the logical inverse of the is not among
operator. When one is true, the other is false.
'is among the bytes' should be used to check if a binary strings
contains the given bytes.
References: wordOffset (function), contains (operator),
is among the keys of (operator), is not among (operator),
is in (operator), wholeMatches (property)
Tags: text processing