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
| Data | Description |
|---|---|
| Signal In | The input to monitor. Whenever this input receives a value (true or false), the node triggers. |
Outputs
Signals
| Signal | Description |
|---|---|
| Signal Out | Triggered 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
- Auto-Save: Connect a "Data Changed" boolean to this node, then to a "Save" action.
- Chain Reaction: When
Task Completebecomes true, triggerPlay Sound. - 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
truethentrueagain 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.