Array Functions

delarray [delitem] finditem getarrays getitem ifindfirst ifinditem igetitem igetmatches indextoitem itemtoindex listarray matchitem numarrays numitems rmatchitem setitem

Liam's BitchX Command Reference

BitchX scripting function $delitem()

delitem
Function
$delitem()
Usage
$delitem(arrayname item)
Returns
deletes an item of an array and moves the contents of the array that were stored "above" the item down by one. It returns 0 (zero) on success, -1 if unable to find the array, -2 if unable to find the item. Also, if the item is the last item in the array, it deletes the array. The item is a number between 0 (the first item) and one less than the array length to delete the last item.


previous: delarray next: delitem