Gates › Loops & Functions › For Loop

For Loop

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

Runs the contained board synchronously Count times and then emits Completed.

Brick summary: Runs its circuitboard synchronously Count times when Exec fires, then emits Completed. Place an Entry gate inside to start each run.

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 4 wire inputs: Count (int), Exec (exec), First Index (int), Step (int). 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
Count int No tooltip in source
Exec exec No tooltip in source
First Index (FirstIndex) int No tooltip in source
Step int 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_CountFor
Component class
Component_Internal_Microchip_CountFor
Kind
internal
Family
Microchip
Half size
5 × 5 × 2

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