Skip to content
lsl.devlsl.devLSL Dev

Types

The seven types, with the first line of each description from the LSL definitions and the examples from the wiki’s types overview:

TypeExampleDefinition
integer4232 bit integer value.
float3.1415932 bit floating point value.
string"Hello, world!"Text data.
key"1fc26194-b2c1-e5e3-20e5-45cb3ae7f73e"A 128 bit unique identifier (UUID).
vector<1.0, 2.0, 3.0>A vector is a data type that contains a set of three float values.
rotation<0.0, 0.0, 0.0, 1.0>Rotation type is one of several ways to represent an orientation in 3D.
list[42, 3.14159, "value"]A collection of other data types.

From the wiki on pass-by-value: “LSL as a language uses pass‑by‑value for all types.” and “Built in functions will never modify the variables used as parameters.”

Typecasting is written (type), for example string message = "The result is:" + (string)result; (from the operators table).

Quotations and examples are from the Second Life Wiki pages Category:LSL Types (revision 1217686, 2024-11-27) and LSL Operators (revision 1216567, 2024-04-30); history, by Second Life Wiki contributors, under CC BY-SA 3.0. Last wiki edit: .