Pass or None(PassOrNone)
The Pass or None node (PassOrNone) is a small utility from the EasyUse/Logic category for handling optional values in a workflow.
Pass Or None
The Pass or None node (PassOrNone) is a small utility from the EasyUse/Logic category for handling optional values in a workflow. It passes a value through when one is available, falls back to a default when the primary input is None or not provided, and outputs None when both inputs are missing. Both inputs are optional and use MATCHTYPE, so the node can work with many different data types rather than being tied to a fixed primitive.
Inputs
anything (MATCHTYPE, optional)
The primary value to pass through. Connect any supported value here. If this input contains a value other than None, that value is passed through unchanged. If anything is None or is left unconnected/not provided, the node uses the default value instead.
default (MATCHTYPE, optional)
An optional fallback value used when anything is None or not provided. If anything has a value, default is ignored. If default is also None or not provided, the node outputs None.
Because both inputs use MATCHTYPE, the supplied values should be type-compatible. The node does not transform or validate the value beyond selecting which input to output.
Outputs
MATCHTYPE output
The resulting value from the node: either the value supplied to anything, the value supplied to default when anything is missing, or None when both inputs are missing. The MATCHTYPE output can be connected to compatible downstream inputs based on the type of the value that was passed through.
BOOLEAN output
The node also returns a BOOLEAN output. This can be used in downstream logic or routing to branch on the node’s outcome. The source facts list the output type but do not provide a separate tooltip or label for this socket, so if a workflow depends on the exact True/False meaning, verify the polarity in the node implementation or with a small test graph.
Usage Notes
- Use this node when an input is genuinely optional and you want to provide a fallback without adding separate conditional logic.
- If
anythingis connected and non-None, thedefaultinput has no effect. - If both
anythinganddefaultareNoneor unconnected, the value output isNone. - The
BOOLEANoutput is useful for conditional routing, but its exact truth condition should be confirmed if it is not obvious from the surrounding workflow. - Since the inputs are
MATCHTYPE, keep connected values type-compatible with the intended downstream node.
Comments
Sign in with GitHub to join the discussion.