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