Difference between revisions of "Template:LSL Function/KeyValue"

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 34: Line 34:
* A string containing a comma-delimited list ({{LSLPT|cdl}}). <code>llDumpList2String([ [[integer]]&nbsp;{{LSLPT|success}}&nbsp;]&nbsp;+ {{LSLPT|components}});</code>
* A string containing a comma-delimited list ({{LSLPT|cdl}}). <code>llDumpList2String([ [[integer]]&nbsp;{{LSLPT|success}}&nbsp;]&nbsp;+ {{LSLPT|components}});</code>
** {{LSLPT|components}} vary depending upon success or failure of request.
** {{LSLPT|components}} vary depending upon success or failure of request.
** Failure: <code>llDumpList2String([ 0, [[integer]]&nbsp;{{LSLPT|error}}],",")</code>
** Failure: <code>{{LSLPT|cdl}} = [[llDumpList2String]]([ 0, [[integer]]&nbsp;{{LSLPT|error}}],",")</code>
** Success: <code>llDumpList2String([ 1{{#if:{{{d2_type|}}}{{{d2_name|}}}|, [[{{{d2_type}}}{{#var:lang}}|{{{d2_type}}}]]&nbsp;{{LSLPT|{{{d2_name}}}}}{{#if:{{{d3_type|}}}{{{d3_name|}}}|, [[{{{d3_type}}}{{#var:lang}}|{{{d3_type}}}]]&nbsp;{{LSLPT|{{{d3_name}}}}}{{#if:{{{d4_type|}}}{{{d4_name|}}}|, [[{{{d4_type}}}{{#var:lang}}|{{{d4_type}}}]]&nbsp;{{LSLPT|{{{d4_name}}}}}}}}}}} ]{{#if:{{{dl_name|}}}|&nbsp;+ {{LSLPT|{{{dl_name|}}}}});}},",")</code>
** Success: <code>{{LSLPT|cdl}} = [[llDumpList2String]]([ 1{{#if:{{{d2_type|}}}{{{d2_name|}}}|, [[{{{d2_type}}}{{#var:lang}}|{{{d2_type}}}]]&nbsp;{{LSLPT|{{{d2_name}}}}}{{#if:{{{d3_type|}}}{{{d3_name|}}}|, [[{{{d3_type}}}{{#var:lang}}|{{{d3_type}}}]]&nbsp;{{LSLPT|{{{d3_name}}}}}{{#if:{{{d4_type|}}}{{{d4_name|}}}|, [[{{{d4_type}}}{{#var:lang}}|{{{d4_type}}}]]&nbsp;{{LSLPT|{{{d4_name}}}}}}}}}}} ]{{#if:{{{dl_name|}}}|&nbsp;+ {{LSLPT|{{{dl_name|}}}}});}},",")</code>
===== String Components =====
===== String Components =====
{{{!}} style="margin-left:0em;"
{{{!}} style="margin-left:0em;"

Revision as of 13:10, 12 July 2014

#var value
p_{{{1}}}_desc The key for the key-value pair
p_{{{2}}}_desc The value for the key-value pair. Maximum 2047 characters, or 4095 if using Mono.
p_{{{value}}}_desc The value for the key-value pair. Maximum 2047 characters, or 4095 if using Mono. Note! This value may contain commas.
spec

Dataserver

The dataserver callback parameters are:

  • A key containing the handle returned from [[]]
  • A string containing a comma-delimited list (cdl). llDumpList2String([ integer success ] + components);
String Components
• integer success A boolean specifying if the transaction succeeded (1) or not (0).
• integer error An XP_ERROR_* flag that describes why the operation failed.


caveats
notes