Skip to main content

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​

DataDescription
AFirst boolean input.
BSecond boolean input.

Control​

SignalDescription
DoTriggers the evaluation. The logic is executed only when this signal is received.

Outputs​

Data​

DataDescription
ResultThe boolean result of A && B. Returns undefined if either input is missing.

Signals​

SignalDescription
True ConditionTriggered if A is true AND B is true.
False ConditionTriggered 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​

  1. Form Submission: Check if Terms Accepted AND Form Valid are both true before allowing submission.
  2. Game Logic: Check if Player Has Key AND Player At Door before opening the door.
  3. Access Control: Check if User Is Logged In AND User Is Admin before showing admin panel.

Detailed Behavior​

  1. Null Safety:
    • If either A or B is undefined or null when Do is triggered, the node does not emit any signal.
    • This prevents false positives/negatives from uninitialized data.
  2. Evaluation:
    • True Condition fires only if A === true and B === true.
    • False Condition fires if A === false or B === false.
  3. Data Output:
    • The Result output updates immediately when inputs change, but the Signals only fire when Do is triggered.

Troubleshooting​

  • No Output: Ensure both A and B have been set to a boolean value (true or false). If one is disconnected or null, the node will stay silent to avoid errors.