llList2Key
function
Function syntax
key llList2Key(list src,// Source list containing the element of interest.integer index// Zero-based index of the entry.
);- Returns
key- Energy
- 10
Returns 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.
Returns a key that is at index in src.
key result = llList2Key([], 0);Examples
Section titled “Examples”Example 1
12 collapsed lines
// Best viewed in Chat History (ctrl-h)default{ state_entry() { list my_list = ["a", 1, 2.0, <1,2,3>, <1,2,3,4>, llGetOwner()]; integer i; for (i=0;i<llGetListLength(my_list); ++i) { llOwnerSay("string=" + llList2String(my_list,i) + "\n integer=" + (string)llList2Integer(my_list,i) + "\n float=" + (string)llList2Float(my_list,i) + "\n vector=" + (string)llList2Vector(my_list,i) + "\n rot=" + (string)llList2Rot(my_list,i) + "\n key=" + (string)llList2Key(my_list,i) ); } }}See also
Section titled “See also”Functions
Section titled “Functions”Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.