Talk:LlListReplaceList

From Second Life Wiki
Revision as of 11:58, 29 May 2008 by Welleran Kanto (talk | contribs) (New page: The code in the Examples section does not compile, as of 05-29-08, 11:54PM PDT: default { state_entry() { list a = ["a", "b", "e", "d"]; list b = llListReplaceLis...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The code in the Examples section does not compile, as of 05-29-08, 11:54PM PDT:


default {

   state_entry()
   {
       list a = ["a", "b", "e", "d"];
       list b = llListReplaceList(a, ["c"], 2, 2);//replace the range starting and ending at index 2 with ["c"] and store it into b

       llOwnerSay("\""+llList2CSV(a) + ""\""  ->  "\""" + llList2CSV(b)+"\"");//display the change
       //Will say: "a, b, e, d"  ->  "a, b, c, d"
   }

}