Difference between revisions of "Talk:LlListReplaceList"
Jump to navigation
Jump to search
m |
|||
Line 1: | Line 1: | ||
The code in the Examples section does not compile, as of 05-29-08, 11:54PM PDT: | The code in the Examples section does not compile, as of 05-29-08, 11:54PM PDT: | ||
<lsl>default | |||
default | |||
{ | { | ||
state_entry() | state_entry() | ||
Line 12: | Line 11: | ||
//Will say: "a, b, e, d" -> "a, b, c, d" | //Will say: "a, b, e, d" -> "a, b, c, d" | ||
} | } | ||
} | }</lsl> | ||
I'm using the latest RC as of that date: 1.20 RC8. Compile fails at the second "\" character, giving "Syntax error".... | I'm using the latest RC as of that date: 1.20 RC8. Compile fails at the second "\" character, giving "Syntax error".... | ||
Line 18: | Line 17: | ||
Please forgive the formatting of the default {} section; I can't figure out how to format the entire code block so that it looks right on the wiki, but all the code is there. | Please forgive the formatting of the default {} section; I can't figure out how to format the entire code block so that it looks right on the wiki, but all the code is there. | ||
--[[User:Welleran Kanto|Welleran Kanto]] 12:01, 29 May 2008 (PDT) | --[[User:Welleran Kanto|Welleran Kanto]] 12:01, 29 May 2008 (PDT) | ||
: Good catch, the quotes were overdone -- [[User:Strife Onizuka|Strife Onizuka]] 14:11, 29 May 2008 (PDT) |
Revision as of 14:11, 29 May 2008
The code in the Examples section does not compile, as of 05-29-08, 11:54PM PDT:
<lsl>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" }
}</lsl>
I'm using the latest RC as of that date: 1.20 RC8. Compile fails at the second "\" character, giving "Syntax error"....
Please forgive the formatting of the default {} section; I can't figure out how to format the entire code block so that it looks right on the wiki, but all the code is there. --Welleran Kanto 12:01, 29 May 2008 (PDT)
- Good catch, the quotes were overdone -- Strife Onizuka 14:11, 29 May 2008 (PDT)