StringIsValidKey
De DigiWiki.
(Page créée avec « 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 return TRUE if th… ») |
|||
| Ligne 40 : | Ligne 40 : | ||
c == "5" || c == "6" || c == "7" || c == "8" || c == "9" || | c == "5" || c == "6" || c == "7" || c == "8" || c == "9" || | ||
c == "a" || c == "b" || c == "c" || c == "d" || c == "e" || | c == "a" || c == "b" || c == "c" || c == "d" || c == "e" || | ||
| - | c == "f") { integer value = TRUE; } //Do something. Keeps the compiler happy. | + | c == "f") { integer value = TRUE; } // Do something. Keeps the compiler happy. |
| - | else return FALSE; //Does not contain a hex character | + | else return FALSE; // Does not contain a hex character |
} | } | ||
} | } | ||
| - | return TRUE; //Must be a key. | + | return TRUE; // Must be a key. |
} | } | ||
| - | //Code to check messages typed on all chat by yourself only, if they are a key. | + | // Code to check messages typed on all chat by yourself only, if they are a key. |
default | default | ||
{ | { | ||


