Scripting/Variables/en
De DigiWiki.
| Ligne 2 : | Ligne 2 : | ||
A '''variable''' is a place to store information, like a number or a string. | A '''variable''' is a place to store information, like a number or a string. | ||
| - | A variable has a name, a type, and a value. The name starts with a letter or underscore ("_"), and the name convention is similar to C or Java. | + | A variable has a name, a type, and a value. The name starts with a letter or underscore ("_"), and the name convention is similar to C or Java. Case matters: ''X'' is not the same as ''x''. |
LSL is a strongly and statically typed language. This means that variables must be declared by type and that variables may only hold values of a corresponding type. However, a list variable may hold zero or more values of any other type. | LSL is a strongly and statically typed language. This means that variables must be declared by type and that variables may only hold values of a corresponding type. However, a list variable may hold zero or more values of any other type. | ||


