OsIsUUID

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
(documenting osIsUUID)
 
Line 3: Line 3:
 
|threat_level=None
 
|threat_level=None
 
|description=Returns 1 if the supplied string is a valid UUID, returns 0 otherwise.
 
|description=Returns 1 if the supplied string is a valid UUID, returns 0 otherwise.
 +
|ossl_example=<source lang="lsl">
 +
default
 +
{
 +
    state_entry()
 +
    {
 +
        key good_key = "09090909-1111-2222-3213-874598734592";
 +
        key bad_key =  "8e9a6ed1-e2f4-4735-8132-e027bbcd27g1";
 +
       
 +
        llOwnerSay((string)osIsUUID(good_key));
 +
        llOwnerSay((string)osIsUUID(bad_key));
 +
    }
 +
}
 +
</source>
 
}}
 
}}

Revision as of 21:04, 8 November 2015

LSLInteger osIsUUID(String thing)
Returns 1 if the supplied string is a valid UUID, returns 0 otherwise.
Threat Level None
Permissions No permissions specified
Extra Delay No function delay specified
Example(s)
default
{
    state_entry()
    {
        key good_key = "09090909-1111-2222-3213-874598734592";
        key bad_key =  "8e9a6ed1-e2f4-4735-8132-e027bbcd27g1";
 
        llOwnerSay((string)osIsUUID(good_key));
        llOwnerSay((string)osIsUUID(bad_key));
    }
}
Personal tools
General
About This Wiki