Difference between revisions of "LlListReplaceList"

From Second Life Wiki
Jump to navigation Jump to search
m (LSL llListReplaceList moved to LlListReplaceList: removing prefix)
Line 1: Line 1:
{{LSL_Function
{{LSL_Function/negative index|true|index}}{{LSL_Function
|func_id=296|func_sleep=0.0|func_energy=10.0
|func_id=296|func_sleep=0.0|func_energy=10.0
|func=llListReplaceList|return_type=list|p1_type=list|p1_name=dest|p2_type=list|p2_name=src|p3_type=integer|p3_name=start|p4_type=integer|p4_name=end
|func=llListReplaceList|return_type=list|p1_type=list|p1_name=dest|p2_type=list|p2_name=src|p3_type=integer|p3_name=start|p4_type=integer|p4_name=end
Line 19: Line 19:
|notes
|notes
|permission
|permission
|negative_index=true
|sort=ListReplaceList
|sort=ListReplaceList
|cat1=List
|cat1=List

Revision as of 12:14, 21 February 2007

Summary

Function: list llListReplaceList( list dest, list src, integer start, integer end );
0.0 Forced Delay
10.0 Energy

Returns a list that is start through end of dest replaced with src.

• list dest
• list src
• integer start
• integer end

index 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 index is out of bounds the script continues to execute without an error message.

Examples

See Also

Deep Notes

Signature

function list llListReplaceList( list dest, list src, integer start, integer end );