among
-
Operator
- is among, is not among
-
Syntax: value is among the chunktypes of source
-
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
-
- is among, is not among
-
Keyword
-
Syntax: number of occurrences of targetValue among the chunktypes of sourceValue
-
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
-