How to use it
- Add it from DataOpen the node library and choose Update state safely from Data.
- Connect the workflow pathConnect Flow in, then connect the Updated and Unchanged outcomes to their next steps.
- Choose settings and connect valuesSet Expected, Operation, Value, Variable. Connections can also supply values produced by earlier nodes.
Settings
These are the options shown when you add this node. A connected value can replace a setting when the workflow runs.
| Setting | Starting value | What it controls |
|---|---|---|
| Expected | Not set | Used when Expected value is not connected from an earlier node. |
| Operation | set_if_absent | Chooses the calculation or change this node performs. |
| Value | Empty | Used when New value is not connected from an earlier node. |
| Variable | Empty | Chooses the saved variable to check or update. |
Value connections
Value connections pass information between nodes without changing the order of the workflow. When an input is not connected, BotFrame uses the value selected in the node or details from the starting Discord event when available.
Inputs
Outputs
What happens when it runs
BotFrame checks the saved value and applies the requested change as one step. Updated and Unchanged show whether it changed, while Previous value, Value, and Changed provide the result to later nodes.
You can use this item in a published BotFrame workflow. You can also test it in the simulator.