MAXScript Language Reference > Variables - Assignment and Scope >

# Variables - Assignment and Scope

A variable is a user-defined container to which you can assign a value, and then later retrieve the value. A variable is identified by its name, and anywhere the variable name is referenced, the value stored in that variable is used.

In this section, the various attributes and considerations associated with variables are described.

- Variable Assignment
- Scope of Variables
- Specifying Global Variables As Global Using ::
- Persistent Global Variables
- Type-Free Variables
- Reference Assignment

#### See Also

- Visibility of Locals, Functions, Structures and User-Interface Items in Rollout Code

- Accessing Locals and Other Items in a Rollout from External Code

- Memory Allocation and Garbage Collection

- Manual Garbage Collection