Difference between revisions of "LlDeleteSubList Sample"
Jump to navigation
Jump to search
Bird Raven (talk | contribs) (New page: <pre> ///////////////////////////// // Author: Bird Raven // For Use As OpenSource ///////////////////////////// default { state_entry() { // Create a list of names ...) |
Bird Raven (talk | contribs) |
||
Line 1: | Line 1: | ||
{{LSL Header}} | |||
<pre> | <pre> | ||
///////////////////////////// | ///////////////////////////// | ||
Line 25: | Line 27: | ||
} | } | ||
</pre> | </pre> | ||
{{#vardefine:sort|llDeleteSubList Sample}}{{LSLC|Library}}{{LSLC|Examples}} |
Revision as of 03:56, 18 June 2007
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
///////////////////////////// // Author: Bird Raven // For Use As OpenSource ///////////////////////////// default { state_entry() { // Create a list of names list names = ["Anthony", "Bob", "Charlie", "Dan", "Edgar", "Gerald"]; // Now let's remove values at position 1 through 2. names = llDeleteSubList(names, 1, 2); // Result: // list names = ["Anthony", "Dan", "Edgar", "Gerald"]; // Now let's use an start number higher then our end number names = llDeleteSubList(names, 1, 3); // Result: // list names = ["Edgar"]; } }