And
This node performs a logical AND operation on two boolean inputs.
The And node evaluates whether both connected inputs are true.
The And node is a logic gate that emits a True Condition signal only if both input A and input B are true. If either (or both) are false, it emits a False Condition signal. It also provides a boolean data output of the result.
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 && B. Returns undefined if either input is missing. |
Signals
| Signal | Description |
|---|---|
| True Condition | Triggered if A is true AND B is true. |
| False Condition | Triggered if A is false OR B is false. |
Usage
Use the And node when you need to ensure multiple conditions are met before proceeding.
Example Use Cases
- Form Submission: Check if
Terms AcceptedANDForm Validare both true before allowing submission. - Game Logic: Check if
Player Has KeyANDPlayer At Doorbefore opening the door. - Access Control: Check if
User Is Logged InANDUser Is Adminbefore showing admin panel.
Detailed Behavior
- Null Safety:
- If either
AorBisundefinedornullwhenDois triggered, the node does not emit any signal. - This prevents false positives/negatives from uninitialized data.
- If either
- Evaluation:
True Conditionfires only ifA === trueandB === true.False Conditionfires ifA === falseorB === false.
- Data Output:
- The
Resultoutput updates immediately when inputs change, but the Signals only fire whenDois triggered.
- The
Troubleshooting
- No Output: Ensure both
AandBhave been set to a boolean value (true or false). If one is disconnected or null, the node will stay silent to avoid errors.