Gates › Variables › Set Variable

Set Variable

Exec gate Variables 3 in 1 out 1 config ⬚ 1x1

Replaces the value stored in the connected Var when executed. Use it to save state such as the current score, selected mode, or target speed.

Diagram

Ports drawn from the source data: inputs left, outputs right, config inside.

How it's used

Structural overview — derived from this gate's ports, not from tested behavior. Takes 3 wire inputs: Exec (exec), Value (any), Var Ref (varRef). Produces 1 output: Exec Out (exec). Configured with 1 property (set on the gate, not wired): Change Type (bool).

No curated example for this gate yet. The shape above is accurate (from the inventory); what it does in practice should be confirmed in-game.

Wire inputs

Wires you feed into the gate.

Display name Type Tooltip
Exec exec No tooltip in source
Value any No tooltip in source
Var Ref (VarRef) varRef No tooltip in source

Wire outputs

Wires the gate produces.

Display name Type Tooltip
Exec Out (ExecOut) exec No tooltip in source

Configuration properties

Set on the gate itself in its properties panel — not wired. Distinct from inputs.

Display name Type Tooltip
Change Type (bChangeType) bool No tooltip in source

Source details

Brick asset
B_1x1_Gate_Exec_Var_Set
Component class
BrickComponentType_Exec_Var_Set
Kind
exec
Family
Var
Half size
5 × 5 × 2

From logic_gate_inventory.simple.json @ 9660107, supplemented by gate_docs.json. Documented behavior, not independently tested.