Nodes/ComfyUI-MAINodes/Gate (process if)
ComfyUI Node

Gate (process if)

Runs the processed branch only when the expression is true, otherwise passes source through, or blocks everything downstream if source is not connected. Both branches are lazy, so the untaken one never executes. The expression can name the widgets of the node feeding processed, and any value connected to a, b, ...

By matlowai·Created 3 months ago·Updated about 24 hours ago· 241
Gate (process if)
  • processed
  • source
  • values
  • result
◄expressiona != 1.0►
CategoryMAINodes/Flow

Inputs (4)

NameTypeDefaultDescription
expressionSTRINGa != 1.0—
processedCOMFY_MATCHTYPE_V3—
sourceoptCOMFY_MATCHTYPE_V3passed through when the expression is false; leave it unconnected to block everything downstream instead
valuesoptCOMFY_AUTOGROW_V3—

Outputs (1)

NameTypeDescription
resultCOMFY_MATCHTYPE_V3—