The MapRange operation rescales a number from one range into another — the linear interpolation that turns a raw sensor reading into engineering units, a percentage into a PWM level, or a 0–1 fraction into any span you need.
Out Min equal to Out Max makes Out that one value whatever arrives, and the Editor marks both fields with an info mark.
Inputs
Port
Type
Required
Description
>
Any
No
Optional gate. When closed, the path stops and Out keeps its previous value.
In
Integer or Float
Yes
The value to rescale. A non-numeric or Nil value fails the Node; its On Error verb resolves the failure.
Outputs
Port
Type
Default
Description
Out
Float
Nil
The rescaled value. Always a Float.
Properties
Name
Type
Default
Description
In Min
Number
0
Value of In that maps to Out Min.
In Max
Number
1
Value of In that maps to Out Max.
Out Min
Number
0
Result at In Min.
Out Max
Number
1
Result at In Max.
Clamp to output range
Boolean
false
When true, the result is confined to the span between Out Min and Out Max. When false, an input outside the source range extrapolates past it.
On Error
Combo
Stop this branch
Per-op On Error verb (Stop this branch / Continue with the last value / Continue with the fallback). See the Error Handling guide.
Gate check — if the Gate is connected and closed, the path stops here.
Read the input — In must carry a number. Anything else fails the Node, and its On Error verb resolves the failure.
Rescale — Out = Out Min + (In − In Min) × (Out Max − Out Min) / (In Max − In Min).
Confine (optional) — with Clamp to output range on, the result is held between the smaller and the larger of Out Min and Out Max, whichever way round they were entered.
Emit — Out is written as a Float and the path continues.
MapRange fails when In is unconnected, Nil, or not a number; the Node’s On Error verb resolves the failure.
Verb
What it does
Stop this branch (default)
This Node and its dependents stop; Out keeps its value and reads as a failed update.
Continue with the last value
Dependents run on the value Out already holds, not stamped as new; it reads as a failed update.
Continue with the fallback
Dependents run on Out’s per-output Fallback, stamped as this run’s value; it reads as a failed update. The Editor refuses a Task where the Fallback is unset.