LSL 101/LSL in Focus: Types

From Second Life Wiki
Jump to navigation Jump to search
↑̲  Language Topics in Focus  ̲↑ Integers →

Summary of Types

In a scripting language, types are a way of categorizing the values that the language can manipulate. In LSL, there are seven different types. Each of these types has its own representation and its own set of operations and/or built-in functions for manipulating values of that type. Here's a quick overview of each type and how it is used in LSL.

Integers

Integers are (a subset of) the basic "whole" numbers -- positive, negative and zero -- of mathematics. They are a very fundamental type in most computer languages. In LSL, they are used in four distinct ways.

Floats

Strings

Keys

Lists

Vectors

Rotations