Skip to main content

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​

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

Signals​

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

  1. Input Validation: Show error if Email is Empty OR Password is Short.
  2. Navigation: Allow access if User is Admin OR User is Moderator.
  3. Game Over: End game if Health is 0 OR Time is Up.

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.
    • Both inputs must be valid booleans for the logic to execute safely.
  2. Evaluation:
    • True Condition fires if A === true or B === true.
    • False Condition fires only if A === false and 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: 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.