LSL 101/Variables

From Second Life Wiki
< LSL 101
Revision as of 19:25, 7 July 2012 by Toady Nakamura (talk | contribs) (editing... see discussion)
Jump to navigation Jump to search
← Event Handler Parameters ↑̲  LSL 101  ̲↑ Using Variables →

Variables

A variable is an identified, named place in a script to store information. It has a name, a type and a value. Variable names are limited to 255 characters and must start with letters or the "_" underscore character. Anything else will be ignored or an error generated.

LSL accepts seven types of variable data: string, integer, float, vector, rotation, key, or list.. We will discuss each type briefly below.

A variable can operate in only part of a script or in all of it. The next page of this tutorial Using Variables talks more about assigning and using variables.

Converting one type of variable to another is called "typecasting."






Continue this tutorial with Using Variables or return to Event Handler Parameters to review.