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/ComfyOrNode.md.

或(ComfyOrNode)

ComfyOrNodeutilities/logic角色:逻辑

Or 节点对一组输入值执行逻辑或运算。根据 Python 标准的真值规则,如果提供的任一值为真(truthy),则返回 true。

参数

参数类型默认 / 范围说明
valuesCOMFY_AUTOGROW_V3—(连线输入)—

输出

输出类型说明
BOOLEANBOOLEAN布尔

怎么接

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

使用案例

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

端口与连线示意

ComfyOrNode 端口与连线示意

同类节点

与 · 非 · 切换