# Sandbox.Doo.SetBlock

Set a variable to a value.

- Kind: class
- Assembly: `Sandbox.Engine`
- Inherits: [Sandbox.Doo.Block](/api/Sandbox.Doo.Block)

## Constructors

- [`SetBlock`](/api/Sandbox.Doo.SetBlock/.ctor)

## Properties

- [`Value`](/api/Sandbox.Doo.SetBlock/Value): The expression whose result will be stored in the variable.
- [`VariableName`](/api/Sandbox.Doo.SetBlock/VariableName): The name of the variable to assign to.

## Methods

- [`CollectArguments`](/api/Sandbox.Doo.SetBlock/CollectArguments)
- [`GetNodeString`](/api/Sandbox.Doo.SetBlock/GetNodeString)
- [`Reset`](/api/Sandbox.Doo.SetBlock/Reset)
