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
0through1. - Allow extrapolation: Allows values below
0or above1.
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.
| ID | Setting | Control | Default | Bounds/options |
|---|---|---|---|---|
boundaryMode | Out-of-range amount | toggle | clamp | options: 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.
| Direction | Connector | Type | Required |
|---|---|---|---|
| Input | start — Start | number | yes |
| Input | end — End | number | yes |
| Input | amount — Amount | number | yes |
| Output | result — Result | number | on success |
