For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /nodes/10/ComfyNotNode.md.

非(ComfyNotNode)

ComfyNotNodeutilities/logic角色:逻辑

Not 节点对任意输入值执行逻辑 NOT 运算。当输入值被视为假值(例如 0、空字符串、None 或 False)时,它返回 True;当输入值为真值时,它返回 False,遵循 Python 标准的真值判断规则。

参数

参数类型默认 / 范围说明
value*—(连线输入)常量值输出。

输出

输出类型说明
BOOLEANBOOLEAN布尔

怎么接

  • 上游:ComfySwitchNode / 比较结果
  • 下游:ComfyAndNode / 开关类节点的布尔口
  • 接线:输出布尔值,接到开关类节点或 ComfySwitchNode 的条件口,用来做分支与开关。

使用案例

从 value 开始填就能跑起来。典型接法:ComfySwitchNode → 本节点 → ComfyAndNode。输出类型是 BOOLEAN,只能接同类型的输入端口,颜色对不上就是接错了。

端口与连线示意

ComfyNotNode 端口与连线示意

同类节点

与 · 或 · 切换