Category:LSL Key

From Second Life Wiki
Revision as of 13:27, 25 August 2007 by TxMasterG Ping (talk | contribs) (No Keys have (g-z))
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

A key is a unique identifier in Second Life (often referred to as a UUID) for anything mostly, be it a prim, avatar, texture, etc.

The key itself is formed of hexidecimal characters (a-f and 0-9) and each section of the key is broken up by dashes.

An example key:

"a822ff2b-ff02-461d-b45d-dcd10a2de0c2"

When passed as the parameter for a conditional it only evaluates true if it is a valid key and not NULL_KEY. You can use this to detect if an arbitrary string is a valid key as follows:

integer isKey(key in) {
    if(in) return 2;
    return (in == NULL_KEY);
}