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.
, variable declaration looks like this:
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"];