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

LSL Wiki : null

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

Null


Unlike many modern programming languages, LSL lacks an explicit null keyword (variables cannot be assigned null). null is usually used to indicate that the variable holds no value. In LSL, "zero values" are used in its place. Often these values have a meaning equivalant to null when passed to specific functions as parameters or when returned by a function.

Zero Values
Type Literal Constant Description
string "" none empty string
list [] none empty list
integer 0 FALSE* integer zero
float 0.0 none float zero
vector <0.0, 0.0, 0.0> ZERO_VECTOR zero-magnitude vector
rotation <0.0, 0.0, 0.0, 1.0> ZERO_ROTATION identity rotation
key "000000-0000-0000-0000-000000000000" NULL_KEY special reserved key
* Only used in boolean expressions.

Functions

llParseStringKeepNulls


Value | Constant | Functions | Reset
There are 5 comments on this page. [Display comments/form]