Files
david 6c0b0f9a47 chore(documentation): added documentation for all nodes in comfy (#3)
* chore(documentation): added documentation for all nodes in comfy
2025-10-11 16:32:21 +02:00

1.1 KiB

Just like the AND Operator, this node provides 2 boolean inputs. Outputs True if either input is True. Returns False only if both are False.

This node does the following:

  • Accepts two boolean inputs and converts them safely to booleans (supports Python bools, NumPy bools, and lists/tuples).
  • For lists/tuples, evaluates each element and applies any(...) (i.e., at least one element must be True).
  • Returns True if either evaluated input is True.

Parameters:

Parameter Type Description
boolean_a BOOLEAN First input value. Accepts Python bools, NumPy bools, or lists/tuples of those.
boolean_b BOOLEAN Second input value. Accepts Python bools, NumPy bools, or lists/tuples of those.

Outputs:

Parameter Type Description
boolean BOOLEAN Result of logical OR. True if either input is True (with list/tuple inputs using any(...)).

Notes:

  • NumPy booleans are converted via .item().
  • If an input is a list/tuple, each element is converted to bool and aggregated with any.