LlDumpList2String
From Second Life Wiki
| Languages: |
English • Deutsch • Español • ελληνικά • Français • עברית • Italiano • 日本語 • 한국어 • Nederlands • Magyar • Norsk • Dansk • Svenska • Türkçe • Polski • Português • Русский • украї́нська • 中文(简体) • 中文(繁體) |
| Volunteer translated pages are linked in blue, Google translated pages are linked in grey. Learn how to provide volunteer translations. | |
| LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Tutorials |
Contents |
Summary
Function: string llDumpList2String( list src, string separator );| 245 | Function ID |
| 0.0 | Delay |
| 10.0 | Energy |
Returns a string that is the list src converted to a string with separator between the entries.
| • list | src | |||
| • string | separator |
Use llParseString2List or llParseStringKeepNulls to undo the process.
Unlike llList2CSV , which dumps a list to a comma-separated formatted string with no choice over the separator, llDumpList2String gives you more control. This can be useful if you don't trust commas as a separator because you might be working with data supplied to the script by a user who uses, say, commas as part of a street address.
Examples
list mylist = ["a", "b", "c", "d"]; string tmp = llDumpList2String(mylist, " ** "); //tmp now equals: "a**b**c**d"
list mylist = [<10,5,7>, 100, "c", "d"]; string tmp = llDumpList2String(mylist, "**"); //tmp now equals: "<10,5,7>**100**c**d"
default{ state_entry(){ list my_list = [1, 2.0, "a string", llGetOwner()]; llOwnerSay("<" + llDumpList2String(my_list,"><") + ">"); } }
This article wasn't helpful for you? Maybe the related article at the LSL Wiki is able to bring enlightenment.

