Checking for a Value in a List
The StringListItemExists function is used to search a character-separated list of string values for a specific string. If the specified string appears in the list, the function returns True, and False if the string is not found.
The function's syntax is as follows:
StringListItemExists( ListName, ListSeparator, Item);
ListName is the list of string values to search. This can be a variable keyword.
There is no need to put the ListName parameter in quotes.
ListSeparator is the single character that separates values in ListName. Its default value is a comma.
The ListSeparator cannot be left as an empty string.
Item is the string to search for in ListName. This must be the full string, exactly as it appears in the list.