This is the documentation for the development version. There are no official binaries for it; build it from the source code in git. Download links on these pages work only after the release. For the current release, see version 7.0.

inList()

Deprecated in 5.0.

Replaced with method split() of the string instance. Sample usage: "b" in "a,b,c".split(",")

inList(string, separator, token): bool

Split input string by separator into elements and compare each element with token.

Table 1. Parameters

string

Input string.

separator

Elements separator.

token

Pattern to compare with.

Return

True if token is found in input string.

>>> inList("1,2,3", ",", "1")
true
>>> inList("ab|cd|ef", "|", "test")
false