<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.secondlife.com/w/index.php?action=history&amp;feed=atom&amp;title=User%3APeter_Stindberg%2Fis_uuid</id>
	<title>User:Peter Stindberg/is uuid - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.secondlife.com/w/index.php?action=history&amp;feed=atom&amp;title=User%3APeter_Stindberg%2Fis_uuid"/>
	<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/w/index.php?title=User:Peter_Stindberg/is_uuid&amp;action=history"/>
	<updated>2026-04-12T00:54:16Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://wiki.secondlife.com/w/index.php?title=User:Peter_Stindberg/is_uuid&amp;diff=1212679&amp;oldid=prev</id>
		<title>Peter Stindberg: Initial version</title>
		<link rel="alternate" type="text/html" href="https://wiki.secondlife.com/w/index.php?title=User:Peter_Stindberg/is_uuid&amp;diff=1212679&amp;oldid=prev"/>
		<updated>2022-10-21T17:00:39Z</updated>

		<summary type="html">&lt;p&gt;Initial version&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{LSLC|User-Defined_Functions}}&lt;br /&gt;
{{LSL_Function&lt;br /&gt;
|func=is_uuid&lt;br /&gt;
|func_desc=Created by [[User:Peter Stindberg|Peter Stindberg]], this function will take a [[key]] as input and return TRUE or FALSE depending on wether the key is a valid Second Life agent [[UUID]]. There are two formal checks there for key-length and number of dashes in the string. &amp;lt;syntaxhighlight lang=&amp;quot;lsl&amp;quot;&amp;gt;integer is_uuid(key uuid) {&lt;br /&gt;
    return (&lt;br /&gt;
           (llStringLength(uuid) == 36) &lt;br /&gt;
        &amp;amp;&amp;amp; (llGetSubString(uuid, 14, 14) == &amp;quot;4&amp;quot;)&lt;br /&gt;
        &amp;amp;&amp;amp; (llGetListLength(llParseString2List(uuid, [&amp;quot;-&amp;quot;], [])) == 5)&lt;br /&gt;
    );&lt;br /&gt;
}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|func_footnote&lt;br /&gt;
|return_type=integer&lt;br /&gt;
|return_text=TRUE or FALSE.&lt;br /&gt;
|p1_type=key&lt;br /&gt;
|p1_name=uuid&lt;br /&gt;
|p1_desc=[[UUID]] to be checked wether it is an agent or not (group, object, ...).&lt;br /&gt;
|p1_hover&lt;br /&gt;
|constants&lt;br /&gt;
|spec&lt;br /&gt;
|caveats=The function checks for a signal that is widely believed to be only part of agent UUID&amp;#039;s and not object UUID&amp;#039;s. Extensive tests by [[User:Peter Stindberg|Peter Stindberg]] as well as other users have shown no counter-example up to date. There is no guarantee that is true for all agent UUID&amp;#039;s, nor that it won&amp;#039;t change in the future.&lt;br /&gt;
|examples&lt;br /&gt;
|helpers&lt;br /&gt;
|also_header&lt;br /&gt;
|also_functions&lt;br /&gt;
|also_tests&lt;br /&gt;
|also_events&lt;br /&gt;
|also_articles&lt;br /&gt;
|also_footer&lt;br /&gt;
|notes&lt;br /&gt;
|mode&lt;br /&gt;
|deprecated&lt;br /&gt;
|location&lt;br /&gt;
|cat1&lt;br /&gt;
|cat2&lt;br /&gt;
|cat3&lt;br /&gt;
|cat4&lt;br /&gt;
|cat5&lt;br /&gt;
|cat6&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Peter Stindberg</name></author>
	</entry>
</feed>