Don't click here unless you want to be banned.

LSL Wiki : NULL_KEY

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are crawl809.us.archive.org

NULL_KEY


NULL_KEY is a constant indicating an empty (null) key: "00000000-0000-0000-0000-000000000000".

NULL_KEY should always be used instead of an empty string. Even though the latter works for most LSL functions, it is bad style and can cause hard-to-track-down bugs in your script:

key foo;

foo = "";
if (foo == NULL_KEY) llSay(0, "This is never true");

This is because the empty string "" in a key is a different value from NULL_KEY.


Constant | Hacks
Comments [Hide comments/form]
Attach a comment to this page: