Gates › Loops & Functions › For Each Map

For Each Map

Internal / physical Loops & Functions 2 in 4 out 3 config ⬚ 1x1

Runs the contained board synchronously for each entry in a map variable.

Brick summary: Runs its circuitboard synchronously once per entry of a map variable, then emits Completed. The Entry gate provides Key and Value.

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 2 wire inputs: Exec (exec), Map Var Ref (varRef). Produces 4 outputs: Aborted (bool), Running (bool), Completed (exec), Iterations Executed (int). Configured with 3 properties (set on the gate, not wired): Abort Reason (enum), Run Across Ticks (bool), Internal Brick Grid (object).

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
Map Var Ref (MapVarRef) varRef No tooltip in source

Wire outputs

Wires the gate produces.

Display name Type Tooltip
Aborted (bAborted) bool No tooltip in source
Running (bRunning) bool No tooltip in source
Completed exec No tooltip in source
Iterations Executed (IterationsExecuted) int No tooltip in source

Configuration properties

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

Display name Type Tooltip
Abort Reason (AbortReason) enum No tooltip in source
Run Across Ticks (bRunAcrossTicks) bool No tooltip in source
Internal Brick Grid (InternalBrickGrid) object No tooltip in source

Source details

Brick asset
B_1x1_Microchip_ForEachMap
Component class
Component_Internal_Microchip_ForEachMap
Kind
internal
Family
Microchip
Half size
5 × 5 × 2

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