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

index to check for.

delimiter
string, optional

Characters that separate list elements. The default value is comma.

includeEmptyFields
boolean, optional

if set to true, empty values are included as well

Examples

list = "one, two, three, four, five";
	res = list.listindexexists(8);
	writeDump(res);
<span class="nv">list</span> <span class="o">=</span> <span class="s2">&quot;one, two, three, four, five&quot;</span><span class="p">;</span>
<span class="nv">res</span> <span class="o">=</span> <span class="nf">list.listindexexists</span><span class="p">(</span><span class="m">5</span><span class="p">);</span>
<span class="nf">writeDump</span><span class="p">(</span><span class="nv">res</span><span class="p">);</span>

See also