OsIsUUID
From OpenSimulator
(Difference between revisions)
m (Added note stating which version of OpenSim introduced this function) |
m (Add script header) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{osslfunc | {{osslfunc | ||
− | |function_syntax= | + | |function_syntax=integer osIsUUID(string thing) |
|threat_level=ignored | |threat_level=ignored | ||
|permissions=true | |permissions=true | ||
|delay=0 | |delay=0 | ||
− | |description=Returns 1 if the supplied string | + | |description=Returns 1 if the supplied string can be converted to key (uuid), returns 0 otherwise. |
|ossl_example=<source lang="lsl"> | |ossl_example=<source lang="lsl"> | ||
+ | // | ||
+ | // osIsUUID Script Exemple | ||
+ | // | ||
+ | |||
default | default | ||
{ | { | ||
state_entry() | state_entry() | ||
{ | { | ||
− | + | string good_key = "09090909-1111-2222-3213-874598734592"; | |
− | + | string bad_key = "8e9a6ed1-e2f4-4735-8132-e027bbcd27g1"; | |
− | + | ||
llOwnerSay((string)osIsUUID(good_key)); | llOwnerSay((string)osIsUUID(good_key)); | ||
llOwnerSay((string)osIsUUID(bad_key)); | llOwnerSay((string)osIsUUID(bad_key)); |
Latest revision as of 03:47, 24 November 2020
integer osIsUUID(string thing)
| |
Returns 1 if the supplied string can be converted to key (uuid), returns 0 otherwise. | |
Threat Level | This function does not do a threat level check |
Permissions | Use of this function is always allowed by default |
Extra Delay | 0 seconds |
Example(s) | |
// // osIsUUID Script Exemple // default { state_entry() { string good_key = "09090909-1111-2222-3213-874598734592"; string bad_key = "8e9a6ed1-e2f4-4735-8132-e027bbcd27g1"; llOwnerSay((string)osIsUUID(good_key)); llOwnerSay((string)osIsUUID(bad_key)); } } | |
Notes | |
This function was added in 0.7.4-post-fixes |