Inverter
This node inverts a boolean value (NOT operation).
The Inverter node flips true to false and false to true.
The Inverter node performs a logical NOT operation. It takes a boolean input and outputs its opposite. It provides both a boolean data output and signal outputs for the inverted result.
Inputs
General
| Data | Description |
|---|---|
| Value | The boolean value to invert. |
Control
| Signal | Description |
|---|---|
| Do | Triggers the evaluation. The logic is executed only when this signal is received. |
Outputs
Data
| Data | Description |
|---|---|
| Result | The inverted boolean value (!Value). |
Signals
| Signal | Description |
|---|---|
| True Condition | Triggered if the inverted result is true (i.e., input was false). |
| False Condition | Triggered if the inverted result is false (i.e., input was true). |
Usage
Use this node to toggle logic or check for the absence of a condition.
Example Use Cases
- Toggle State: If
Is Visibleis true, Inverter makes it false (Hide). - Validation: Check if a field is not empty.
IsEmpty-> Inverter ->IsNotEmpty.
- Disable Button: Bind
Is Loadingto Inverter, then toButton Enabled. (If loading, enabled is false).
Detailed Behavior
- Null Safety: If the input is
undefined, the result isundefined. - Signal Logic:
- Input
true-> Resultfalse-> FiresFalse Condition. - Input
false-> Resulttrue-> FiresTrue Condition.
- Input
Troubleshooting
- Confusion: Remember the signals refer to the Result, not the Input. "True Condition" means "The result is true" (so the input was false).