Difference between revisions of "LlDumpList2String"

From Second Life Wiki
Jump to navigation Jump to search
Line 8: Line 8:
|caveats
|caveats
|constants
|constants
|examples
|examples=<pre>default
{
    state_entry()
    {
        list my_list = [1, 2.0, "a string", llGetOwner()];
        llOwnerSay("<" + llDumpList2String(my_list,"><") + ">");       
    }
}</pre>
|helpers
|helpers
|also_functions=*{{LSLG|llParseString2List}}
|also_functions=*{{LSLG|llParseString2List}}

Revision as of 16:07, 8 March 2007

Summary

Function: string llDumpList2String( list src, string separator );
0.0 Forced 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

Examples

default
{
    state_entry()
    {
        list my_list = [1, 2.0, "a string", llGetOwner()];
        llOwnerSay("<" + llDumpList2String(my_list,"><") + ">");        
    }
}

Notes

Use llParseString2List or llParseStringKeepNulls to undo the process.

Deep Notes

Signature

function string llDumpList2String( list src, string separator );