LlDeleteSubList

De DigiWiki.

src = llDeleteSubList( src, start, end )
default
{
    state_entry()
    {
        // Create a list of names
        list names = ["Anthony", "Bob", "Charlie", "Diane", "Edgar", "Gabriela"];
 
        // Now let's remove values at position 1 through 2.
        names = llDeleteSubList(names, 1, 2);
 
        // Result:
        // list names = ["Anthony", "Diane", "Edgar", "Gabriela"];
 
        // Now let's use an start number higher then our end number
        names = llDeleteSubList(names, 3, 1);
 
        // Result:
        // list names = ["Edgar"];
        // If start number higher then our end number, then we should imagine that the start and the end are missing before start and end.
        // Imagine it should be FROM_THE_LISTSTART_CUT: start, AND_FROM_THE_LISTEND_CUT: end ... more or less :))
        // names = llDeleteSubList(names, 3 -> , <- 1);
 
    }
}
Outils personnels
  • Cette page a été consultée 547 fois.
donate
Google Ads