Don't click here unless you want to be banned.

LSL Wiki : llDeleteSubList

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are crawl836.us.archive.org
list llDeleteSubList(list src, integer start, integer end)

Returns a list equal to src without the slice defined by start and end. The start and end are inclusive, so 0, llGetListLength(src) - 1 would cause the function to return an empty list, and 0, 0 would cause the function to return a list equal to src without its first element. Using negative numbers for start and/or end causes the index to count backwards from the length of the list, so 0, -1 would cause the function to return an empty list. If start is larger than end the list returned is the exclusion of the entries, so 6, 4 would cause the function to return only src's 5th list entry.

IMPORTANT NOTE: This function does not manipulate src directly. To manipulate the list you pass as src, you must set src equal to the return value of this function.

Example:
list src = ["A", "B", "C"];
llDeleteSubList(src, 1, 1);
// ^^^ After this line, src is still ["A", "B", "C"] because the return value is discarded

src = llDeleteSubList(src, 1, 1);
// ^^^ After this line, src is ["A", "C"] because the return value is assigned to it

Compare with llListInsertList.


This article wasn't helpful for you? Maybe the related article at the LSL Portal is able to bring enlightenment.

Lists | Functions
Comments [Hide comments/form]
I dont know i tried this script and it randomly deleted some other list elments too, sometimes all. So i had to use a third list to get the items i want.
-- catv-59856cb9.catv.broadband.hu (2007-09-03 14:24:16)
Attach a comment to this page: