string.listIndexExists()
Determines if an element at the given position exists or not
string.listIndexExists( index=number, delimiter=string, includeEmptyFields=boolean )
Returns: Boolean
| Argument | Description |
|---|---|
|
index
number,
required
|
edit
index to check for. |
|
delimiter
string,
optional
|
edit
Characters that separate list elements. The default value is comma. |
|
includeEmptyFields
boolean,
optional
|
edit
if set to true, empty values are included as well |
Examples
edit list = "one, two, three, four, five";
res = list.listindexexists(8);
writeDump(res);
list = "one, two, three, four, five";
res = list.listindexexists(5);
writeDump(res);