array.isDefined()

Returns whether there exists an item in the array at the selected index.

array.isDefined( index )

Returns: Boolean

Argument Description
index
number, required

The index which to check

Examples

water = ["sea","river","well","bottle"];
writeDump(water.isdefined(0));
writeDump(water.isdefined(5));
writeDump(water.isdefined(4));

See also