Difference between revisions of "LSL 101/Variables"

From Second Life Wiki
Jump to navigation Jump to search
m (blanked page down to header/footer to show in history. This material went to LSL 101/Using Variables and new material is being entered.)
m (editing... see discussion)
Line 1: Line 1:
[[Category:LSL 101]]
[[Category:LSL 101]]
{{NavNextPrev|prev=Event Handler Parameters|next=Using Variables}}
{{NavNextPrev|prev=Event Handler Parameters|next=Using Variables}}
{{LSL Wikibook Index}}
{{LSL Wikibook Index}}


Continue this tutorial with [[LSL 101/Using Variables]] or return to [[LSL 101/ Event Handler Parameters]] to review.
==[[LSL_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 [[LSL 101/Using Variables |Using Variables]] talks more about assigning and using variables. 
 
Converting one type of variable to another is called "typecasting."
 
 
 
 
 
 
 
 
 
 
'''Continue this tutorial with [[LSL 101/Using Variables|Using Variables]] or return to [[LSL 101/ Event Handler Parameters|Event Handler Parameters]] to review.'''

Revision as of 19:25, 7 July 2012

← 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.