ListItemDelete

From Second Life Wiki
Revision as of 06:34, 13 July 2008 by Chaz Longstaff (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Function: list ListItemDelete(list mylist, string element);

Removes one item from a list.

See also: Lists

<lsl> list ListItemDelete(list mylist,string element_old) {

   integer placeinlist = llListFindList(mylist, [element_old]);
   list newlist = llDeleteSubList(mylist, placeinlist, placeinlist);
   return newlist;

}

</lsl>