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

LSL Wiki : declare

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are


To "declare" a variable is to set up memory space for it. In more basic terms, it can be thought of as creating a name to identify a chunk of data.

In LSL, variable declaration looks like this:
integer a;
vector b;
list c;
s All of these were variable declarations. You must declare a variable in order to use it in a script.

Variables are declared within the scope of where they were initiated.

Optionally, in a declaration, an initial value may be assigned, like so:
integer a = 42;
vector b = <1,1,1>;
list c = ["C","Sea","See"];

LSL | Glossary | scope | variable | value
There is no comment on this page. [Display comments/form]