Difference between revisions of "LlDumpList2String"

From Second Life Wiki
Jump to navigation Jump to search
m (formatted example)
Line 8: Line 8:
|caveats
|caveats
|constants
|constants
|examples=<pre>default
|examples=
<lsl>default
{
{
     state_entry()
     state_entry()
Line 15: Line 16:
         llOwnerSay("<" + llDumpList2String(my_list,"><") + ">");         
         llOwnerSay("<" + llDumpList2String(my_list,"><") + ">");         
     }
     }
}</pre>
}</lsl>
|helpers
|helpers
|also_functions=*{{LSLG|llParseString2List}}
|also_functions=*{{LSLG|llParseString2List}}

Revision as of 09:59, 11 February 2008

Summary

Function: string llDumpList2String( list src, string separator );

Returns a string that is the list src converted to a string with separator between the entries.

• list src
• string separator

Examples

<lsl>default {

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

Notes

Use llParseString2List or llParseStringKeepNulls to undo the process.

Deep Notes

Search JIRA for related Issues

Signature

function string llDumpList2String( list src, string separator );