Difference between revisions of "StringIsValidKey"
Jump to navigation
Jump to search
Zion Tristan (talk | contribs) (Created page with "{{LSL Header}} This User Made Function can be used to identify if a given string is a valid Second Life UUID Key. It is to be used as a Boolean function which will retur…") |
Zion Tristan (talk | contribs) (Replaced content with "{{LSL Header}} '''This will not check if the key given actually references an asset, agent/group, instance, or terrain).''' ''Checks with other functions and the given key c…") |
||
Line 1: | Line 1: | ||
{{LSL Header}} | {{LSL Header}} | ||
'''This will not check if the key given actually references an asset, agent/group, instance, or terrain).''' ''Checks with other functions and the given key can be used for this.'' | |||
''' | |||
<lsl> | <lsl> | ||
key temp = (key) input; | |||
if(temp) llOwnerSay("Input is a valid key!"); | |||
else llOwnerSay("Input is not a valid key!"); | |||
</lsl> | </lsl> |
Latest revision as of 14:33, 27 August 2012
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
This will not check if the key given actually references an asset, agent/group, instance, or terrain). Checks with other functions and the given key can be used for this.
<lsl> key temp = (key) input;
if(temp) llOwnerSay("Input is a valid key!"); else llOwnerSay("Input is not a valid key!"); </lsl>