llListInsertList

From Second Life Wiki
Revision as of 21:38, 16 April 2007 by Strife Onizuka (talk | contribs)
Jump to navigation Jump to search

Summary

Function: list llListInsertList( list dest, list src, integer start );

Returns a list that is src inserted into dest at position start.

• list dest
• list src
• integer start

start supports negative indexes.

Specification

Index Positive Negative
First 0 -length
Last length - 1 -1

Indexes

  • Positive indexes count from the beginning, the first item being indexed as 0, the last as (length - 1).
  • Negative indexes count from the far end, the first item being indexed as -length, the last as -1.

Caveats

  • If start is out of bounds the script continues to execute without an error message.
  • If start is past the end of src, then dest is appended to src, it will not add null entries. To avoid this, create empty elements in the list first. A similar outcome occurs when using negative indexes.
All Issues ~ Search JIRA for related Bugs

Examples

See Also

Functions

• llDeleteSubList
• llList2List
• llListReplaceList

Articles

•  Negative Index

Deep Notes

Search JIRA for related Issues

Signature

function list llListInsertList( list dest, list src, integer start );