Search, extract, modify, and sort list entries.
Feature: Data Transmission
What do you want to do?
integer llListFindList(list src, list test)Returns the integer index of the first instance of list test within the list src (returns -1 if not found).list llList2List(list src, integer start_index, integer end_index)Returns a new list containing the subset of entries from src within the inclusive range specified by the start and end indices. Negative indices count backward from the end.list llListReplaceList(list dest, list src, integer start_index, integer end_index)Returns a copy of the list dest with the inclusive range from start to end removed, and the elements of src inserted in its place at start.list llListSort(list src, integer stride, integer ascending)Returns a copy of the list src, sorted into blocks of stride in ascending order (if ascending is TRUE) or descending order (if FALSE). Only works if the first entry of each block shares the same datatype.Reference
23 topic entries
list llDeleteSubList(list src, integer start_index, integer end_index)functionReturns a copy of the list src with the slice from start_index to end_index (inclusive) removed. Negative indices count backward from the end of the list. If start_index is greater than end_index, the deletion excludes the specified range.
integer llGetListEntryType(list src, integer index)functionReturns an integer representing the variable type (TYPE_*) of the list entry at index in the list src.
integer llGetListLength(list src)functionReturns an integer representing the total number of elements in the list src.
string llList2CSV(list src)functionReturns a string of comma-separated values taken in order from the list src.
float llList2Float(list src, integer index)functionReturns the float value at index in the list src. Returns 0.0 if the index is out of bounds or if the value cannot be type-cast.
integer llList2Integer(list src, integer index)functionReturns the integer value at index in the list src. Returns 0 if the index is out of bounds or if the value cannot be type-cast.
string llList2Json(string type, list values)functionConverts the list values into a JSON string of the specified type (either a
JSON_ARRAYor aJSON_OBJECT). ReturnsJSON_INVALIDif an error is encountered.key llList2Key(list src, integer index)functionReturns the key (UUID) value at index in the list src. Returns a null string/key if the index is out of bounds or if the value cannot be type-cast.
list llList2List(list src, integer start_index, integer end_index)functionReturns a new list containing the subset of entries from src within the inclusive range specified by the start and end indices. Negative indices count backward from the end.
list llList2ListSlice(list src, integer start_index, integer end_index, integer stride, integer slice_index)functionReturns a list containing the slice_index'th element of every stride within the inclusive range from start to end in the strided list src. Stride must be a positive integer.
list llList2ListStrided(list src, integer start_index, integer end_index, integer stride)functionReturns a new list containing the first element of every stride in the strided list src within the inclusive range from start to end.
rotation llList2Rot(list src, integer index)functionReturns the rotation value at index in the list src. Returns
ZERO_ROTATIONif the index is out of bounds or if the value cannot be type-cast.string llList2String(list src, integer index)functionReturns the string value at index in the list src. Returns an empty string if the index is out of bounds.
vector llList2Vector(list src, integer index)functionReturns the vector value at index in the list src. Returns
ZERO_VECTORif the index is out of bounds or if the value cannot be type-cast.integer llListFindList(list src, list test)functionReturns the integer index of the first instance of list test within the list src (returns -1 if not found).
integer llListFindListNext(list src, list test, integer instance)functionReturns the integer index of the specified instance of list test within the list src (returns -1 if not found).
integer llListFindStrided(list src, list test, integer start_index, integer end_index, integer stride)functionReturns the integer index of the first instance of list test in the strided list src within the range from start to end (stepping through by stride). Returns -1 if not found.
list llListInsertList(list dest, list src, integer start)functionReturns a new list containing all elements of dest with the elements of src inserted starting at index start. Does not modify dest itself.
list llListRandomize(list src, integer stride)functionReturns a randomized copy of the list src by blocks of size stride. If the list length is not perfectly divisible by stride, no randomization occurs.
list llListReplaceList(list dest, list src, integer start_index, integer end_index)functionReturns a copy of the list dest with the inclusive range from start to end removed, and the elements of src inserted in its place at start.
list llListSort(list src, integer stride, integer ascending)functionReturns a copy of the list src, sorted into blocks of stride in ascending order (if ascending is
TRUE) or descending order (ifFALSE). Only works if the first entry of each block shares the same datatype.list llListSortStrided(list src, integer stride, integer stride_index, integer ascending)functionReturns a copy of the list src sorted into blocks of stride by the element at stride_index in each block. Sorted in ascending order (if ascending is
TRUE) or descending order (ifFALSE).float llListStatistics(integer operation, list src)functionReturns the numeric result of the statistical aggregate function operation (a LIST_STAT_* constant) on the numeric list src.
No matching entries. Try a different term or filter.