llList2CSV
string llList2CSV(list ListVariable)Creates a string of comma separated values from the list.
Create a string of comma separated values from the specified list.
Parameters
-
ListVariable(list)
This function’s functionality is equivalent to llDumpList2String(src, ", "). The result is more or less CSV format, but it does not conform in all its details.
Examples
Section titled “Examples”default{ state_entry() { list my_list = [FALSE, PI, "a string", ZERO_VECTOR, ZERO_ROTATION, NULL_KEY]; llOwnerSay(llList2CSV(my_list)); }}Caveats
Section titled “Caveats”llCSV2Listwill not reverse the process if there are commas or oddly matched angle brackets (<and>) in any of the original strings. For details see the article onllCSV2List.- One way around this is to first use
llEscapeURLon any user-supplied strings before adding them to the list.llUnescapeURLwill reversellEscapeURL. - If your strings may contain commas but not unmatched angle brackets, you can wrap your strings with angle brackets (< and >) like you would use double quotes around the string and then use
llGetSubStringwith START at 1 and END at -2 to remove them.
- Values are separated with a comma and a space (”, ”).
- To reverse the process, use
llCSV2List(see Caveats section).