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.0 KiB

Flips the input value: True → False, False → True. Useful for inverting conditions.

This node does the following:

  • Accepts a boolean input and converts it safely to a Python bool (supports Python bools, NumPy bools, and lists/tuples).
  • For lists/tuples, evaluates each element and applies all(...) first, then flips the final result with not.
  • Returns the inverted boolean value.

Parameters:

Parameter Type Description
boolean BOOLEAN Input value to flip. Accepts Python bools, NumPy bools, or lists/tuples. Lists/tuples are aggregated with all(...) before flipping.

Outputs:

Parameter Type Description
boolean BOOLEAN Inverted value. True becomes False; False becomes True.

Notes:

  • NumPy booleans are converted via .item().
  • For lists/tuples, the node computes all(elements) first, then applies not to that result.