Skip to main content

Value Changed

This node triggers a signal whenever its input value changes.

The Value Changed node (also known as Boolean To Signal) monitors a boolean input and fires a signal on any update.

The Value Changed node is a simple event trigger. It takes a boolean input (or any value cast to boolean) and emits a signal immediately whenever that input is set. Unlike the "Do" signal on other nodes which is manual, this node reacts to data flow.

Inputs

General

DataDescription
Signal InThe input to monitor. Whenever this input receives a value (true or false), the node triggers.

Outputs

Signals

SignalDescription
Signal OutTriggered immediately when Signal In is set.

Usage

Use this node to convert a data update into a control signal. This is essential for "reactive" programming where a change in data should start a logic flow.

Example Use Cases

  1. Auto-Save: Connect a "Data Changed" boolean to this node, then to a "Save" action.
  2. Chain Reaction: When Task Complete becomes true, trigger Play Sound.
  3. Debugging: Connect to any boolean output to see when it updates.

Detailed Behavior

  • Trigger Condition: The node triggers on any set operation to the input port, even if the value is the same as before (e.g., setting true then true again will trigger twice).
  • Type: While typically used with booleans, it can accept other types if they are connected to the boolean port (they will be cast).

Troubleshooting

  • Infinite Loops: Be careful not to create a loop where a signal updates a value, which triggers this node, which updates the value again.