Skip to content
lsl.devlsl.devLSL Dev

llLinksetDataCountFound

function
Function syntax
integer llLinksetDataCountFound(
  1. string pattern// A regular expression (regex) search string used to match keys.
);
Returns
integer
Energy
10

The llLinksetDataCountFound function returns the number of keys in the linkset datastore that match the pattern supplied in the pattern.

Returns an integer Count of the keys in the datastore that match the supplied pattern.

How to use
integer result = llLinksetDataCountFound("");

pattern is a Regular expression.

The following regular expression code can be used to count UUID keys. (Such as those use to identify user UUID)
integer numKeysFound = llLinksetDataCountFound("(?i)^[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}$", 0, 0);
The following code can also be used to count UUID keys in LinksetData memory.
integer numKeysFound = llLinksetDataCountFound("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$", 0, 0);
Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.