Interpolate

logic · C080 · starter-package 7.0.1

Calculates a value between two endpoints using an Amount, commonly called linear interpolation or lerp.

Inputs

  • Start (number, required): Value at Amount 0.
  • End (number, required): Value at Amount 1.
  • Amount (number, required): Interpolation factor.

Toggle: Out-of-range amount

  • Clamp to 0–1: Default; limits Amount before calculating.
  • Report an error: Requires Amount from 0 through 1.
  • Allow extrapolation: Allows values below 0 or above 1.

Output

  • Result (number): Finite interpolated or extrapolated value.

Common uses

Blend prices, coordinates, progress values, thresholds, animation values, measurements, or numeric transitions.

Example

Start 10, End 30, and Amount 0.25 produce 15.

Exact settings reference

These are the saved settings and defaults. If a value is connected to the matching input, that connected value is used.

IDSettingControlDefaultBounds/options
boundaryModeOut-of-range amounttoggleclampoptions: Clamp to 0–1 (clamp), Report an error (error), Allow extrapolation (extrapolate)

Errors and recovery

When this block reports an error, no downstream output is emitted. Correct the highlighted input or setting described by the message, then run the workflow again.

Invalid modes, forbidden out-of-range amounts, missing values, and non-finite results stop the workflow.

Connector data types

The type below is the data type that actually travels through the connection. Any additional validation is described separately in this block guide.

DirectionConnectorTypeRequired
Inputstart — Startnumberyes
Inputend — Endnumberyes
Inputamount — Amountnumberyes
Outputresult — Resultnumberon success