Talk:Notecard reading

From Second Life Wiki
Revision as of 12:43, 29 April 2024 by Gwyneth Llewelyn (talk | contribs) (added <syntaxhighlight> & reference to unsigned commentary)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A better way to handle this would be the following lines

   list tmp = llParseStringKeepNulls(data, ["="], []);
   string setting = llList2String(tmp, 0);
   string param = llDumpList2String(llDeleteSubList(tmp, 0, 0), "=");

This will not lose information if the setting value includes a "=" in it. Also, setting the param value before checking setting will save code overall. —The preceding unsigned comment was added on 18 July 2008 21:27‎ by Earle Swenson