Code helpers

Small deterministic steps for sampling a random number or bumping a counter. They are faster to configure than Run code when the built-in maths already matches your need.

Overview

These nodes live in the Code group in the add-step sheet but are not the full JavaScript sandbox: they execute narrow, optimised paths with typed outputs.

Steps in this family

Random number

Draws a value inside configurable bounds. Bounds may be literals or expression variables so upstream steps can widen or narrow the range per run.

Iteration

Increments a counter for loops or pacing patterns. Combine with logic steps when you need to stop after N traversals (design the graph so the counter feeds a decision or switch).

Configuration

Both use the Execution tab for the numeric parameters and the Output tab to publish fields such as the sampled number or the new counter value for downstream {{input.*}}.

Data flow

Treat outputs like any other step: the next node receives the mapped JSON object. When you need arbitrary control flow, switch to Code instead.

Related