Gates ›
Loops & Functions ›
For Each Array
For Each Array
Runs the contained board synchronously for each element in an array variable.
Brick summary: Runs its circuitboard synchronously once per element of an array variable, then emits Completed. The Entry gate provides Index 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: Array Var Ref (arrayVarRef), Exec (exec). 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).
Wire inputs
Wires you feed into the gate.
| Display name | Type | Tooltip |
|---|---|---|
| Array Var Ref (ArrayVarRef) | arrayVarRef | No tooltip in source |
| Exec | exec | 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_ForEachArray
- Component class
- Component_Internal_Microchip_ForEachArray
- Kind
- internal
- Family
- Microchip
- Half size
- 5 × 5 × 2