---
generated_by: gdlink-build
generated_at: 2026-06-23T12:34:28Z
do_not_edit: true
title: State
brick_type: executor
tier: Basic
generated: true
---
# State
**Category:** Executor
**Tier:** Basic
## Purpose
Mutates the runtime's 30-bit state mask so State Gates and state-filtered bricks activate on the correct channels.
## Visual Reference
```{raw} html
```
## Runtime Behavior
**Inputs**
- **Activate** (Boolean): Applies the configured state operation once when triggered.
**Properties**
- **mode** (Enum, `Set State`)
- `Set State`: replace the entire active mask with the selected state bit
- `Add State`: OR the selected state bit into the current mask
- `Remove State`: clear the selected state bit from the current mask
- `Change State`: legacy alias of `Set State`
- **state_index** (Int, `0`)
- State slot to modify (`0..29`)
```{raw} html
```
## Properties
This brick does not expose a generated property table yet. See the source specification for implementation notes.