Or
This node performs a logical OR operation on two boolean inputs.
The Or node evaluates whether at least one of the connected inputs is true.
The Or node is a logic gate that emits a True Condition signal if either input A or input B (or both) are true. It only emits a False Condition signal if both inputs are false.
Inputs
General
| Data | Description |
|---|---|
| A | First boolean input. |
| B | Second boolean input. |
Control
| Signal | Description |
|---|---|
| Do | Triggers the evaluation. The logic is executed only when this signal is received. |
Outputs
Data
| Data | Description |
|---|---|
| Result | The boolean result of `A |
Signals
| Signal | Description |
|---|---|
| True Condition | Triggered if A is true OR B is true. |
| False Condition | Triggered if A is false AND B is false. |
Usage
Use the Or node when any one of several conditions is sufficient to proceed.
Example Use Cases
- Input Validation: Show error if
Email is EmptyORPassword is Short. - Navigation: Allow access if
User is AdminORUser is Moderator. - Game Over: End game if
Health is 0ORTime is Up.
Detailed Behavior
- Null Safety:
- If either
AorBisundefinedornullwhenDois triggered, the node does not emit any signal. - Both inputs must be valid booleans for the logic to execute safely.
- If either
- Evaluation:
True Conditionfires ifA === trueorB === true.False Conditionfires only ifA === falseandB === false.
- Data Output:
- The
Resultoutput updates immediately when inputs change, but the Signals only fire whenDois triggered.
- The
Troubleshooting
- No Output: As with the And node, ensure both inputs are initialized. If you only need to check one condition, use the If node instead, or set the unused input to
false.