Purpose
Map one value from an explicit source range to an explicit target range.
Connectors and setting
- Inputs:
Value,Source start,Source end,Target start, andTarget end(finite numbers). Outside source range:ExtrapolateorClamp.- Output:
Result(number).
Example
Mapping 5 from 0…10 to 0…100 returns 50.
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 |
|---|---|---|---|---|
outside | Outside source range | toggle | extrapolate | options: Extrapolate (extrapolate), Clamp (clamp) |
Failure cases
Equal source endpoints, invalid numbers, unknown settings, and non-finite results stop execution. Reversed ranges are supported.
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.
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 | value — Value | number | yes |
| Input | sourceStart — Source start | number | yes |
| Input | sourceEnd — Source end | number | yes |
| Input | targetStart — Target start | number | yes |
| Input | targetEnd — Target end | number | yes |
| Output | result — Result | number | on success |
