= LSL:LinksetData = * [[https://wiki.secondlife.com/wiki/Category:LSL_LinksetData|LSL Wiki LinksetData]] == Dump All Data == -- Dump the contents of all LSD keys local function ls_data_dump() local keys = ll.LinksetDataListKeys(0, -1); local count = ll.LinksetDataCountKeys(); if count ~= ll.GetListLength(keys) then ll.OwnerSay("ERROR: llLinksetDataCountKeys() does not equal the number of keys returned by llLinksetDataListKeys()"); end for i = 0, count - 1 do ll.OwnerSay(ll.List2String(keys, i) .. "=" .. ll.LinksetDataRead(ll.List2String(keys, i))); end end == Search Data == https://wiki.secondlife.com/wiki/LlLinksetDataFindKeys local function search_ls_data(pattern) local keys = ll.LinksetDataFindKeys(pattern, 0, -1); local count = ll.GetListLength(keys); ll.OwnerSay(string.format("LS num keys found: %d", count)); for i = 0, count - 1 do ll.OwnerSay(ll.List2String(keys, i) .. "=" .. ll.LinksetDataRead(ll.List2String(keys, i))); end end [[:lsl:linksetdata|LSL]]