among
This term has multiple roles in SenseTalk, which are described below.
is among, is not among Operators
Checks whether a value is present as one of the words, items, lines, or characters of a source value. This is different from the is in operator which will find substrings. The is among operator looks only for whole matches among the chunks of the specified type.
Example:
put "cat" is in "dog concatenation mouse" --> True
put "cat" is among the words of "dog concatenation mouse" --> False
put "cat" is among the words of "dog cat mouse" --> True
Keyword
This term is a keyword that is used as part of other SenseTalk terms, which include the following:
number of occurrences ofxamong- See:
number
- See:
Example:
put the number of occurrences of "cat" among the words of "dog cat mouse caterpillar" --> 1
put number of occurrences of "cat" among the characters of "dog cat mouse caterpillar" --> 2