Inputs
| Port | Type | Required | Description |
|---|---|---|---|
| > | Any | No | Optional gate. When closed, the path stops and no sample is recorded. |
| In | Integer or Float | Yes | The value to track. A non-numeric or Nil value fails the Node; its On Error verb resolves the failure. |
The Delta operation reports how much a numeric input has moved since the last time it ran. In Delta mode that is the plain difference; in Rate mode it is the difference divided by the elapsed time, giving a per-second rate of change.
Inputs
| Port | Type | Required | Description |
|---|---|---|---|
| > | Any | No | Optional gate. When closed, the path stops and no sample is recorded. |
| In | Integer or Float | Yes | The value to track. 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 change since the previous sample — a difference in Delta mode, a per-second rate in Rate mode. |
Properties
| Name | Type | Default | Description |
|---|---|---|---|
| Mode | Combo | Delta | Delta emits current − previous. Rate emits (current − previous) / seconds elapsed. |
| 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. |
State on Reload
Out is preserved across restarts. The remembered sample is not: after a restart the next run is a first sample again and stops the path.
Gate check — if the Gate is connected and closed, the path stops and nothing is recorded.
Read the input — In must carry a number. Anything else fails the Node, and its On Error verb resolves the failure.
First sample? — with no previous sample held, the value and the moment are recorded and the path stops.
Compute — Delta mode subtracts the held value from the current one. Rate mode divides that difference by the seconds since the held sample was taken.
Replace and emit — the current value and moment become the held sample, Out is written, and the path continues.
Mode: Delta
| Run | In | Out |
|---|---|---|
| 1 | 100 | (stops — first sample) |
| 2 | 130 | 30.0 |
| 3 | 125 | -5.0 |
| 4 | 125 | 0.0 |
Mode: Rate — runs 10 seconds apart
| Run | In | Out |
|---|---|---|
| 1 | 1000 | (stops — first sample) |
| 2 | 1050 | 5.0 (50 over 10 s) |
| 3 | 1050 | 0.0 |
0 over many runs is a reading that is not moving.Delta 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. |