compare_previous · Version: 1 · Category: Logic
Detect a meaningful change and update state after success. sndbox classifies this node as side-effecting, so tests or automatic runs can require additional confirmation and permission review.
When to use this node
- Notify only when a polled value changes.
- Compare normalized text while remembering the latest successful observation.
Example: Detect a changed page heading
Compare mapped page text after collapsing whitespace.Example settings
- Map the current value and choose a durable key.
- Connect changed to a Condition node.
- Send notifications only from the true branch.
Configuration
The new comparison value is committed only after the complete workflow succeeds.
Workflow JSON
The editor stores this node with the following implemented default configuration:Default node configuration
Inputs
Outputs
Execution behavior
- The first observation is reported separately and is not considered a change.
- The current value is staged for commit only after the complete workflow succeeds.
- The editor catalogue declares
changed(boolean),previous(any),current(any) for mapping. The execution inspector can contain additional evidence fields; inspect a real result before selecting nested paths from object or any outputs.
Common issues
- Choose none when whitespace or capitalization is semantically important.
- Reusing one key for unrelated values makes comparisons misleading.
Where it can run
- Desktop local runner
- Paired self-hosted runner
- Hosted runner