Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-NativeLooping_testing > Conditional Select

ComfyUI Node: Conditional Select

Class Name

_ConditionalSelect

Category
looping/logic
Author
kijai (Account age: 2913days)
Extension
ComfyUI-NativeLooping_testing
Latest Updated
2026-06-15
Github Stars
0.02K

How to Install ComfyUI-NativeLooping_testing

Install this extension via the ComfyUI Manager by searching for ComfyUI-NativeLooping_testing
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-NativeLooping_testing in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Conditional Select Description

Facilitates decision-making by selecting between two values based on a condition, optimizing performance.

Conditional Select:

The _ConditionalSelect node is designed to facilitate decision-making processes within a node graph by selecting between two potential values based on a given condition. This node is particularly useful in scenarios where you need to dynamically choose between two options without evaluating both, thereby optimizing performance and resource usage. It employs lazy evaluation, meaning that only the branch corresponding to the true condition is executed, which can be beneficial in complex workflows where computational efficiency is crucial. This node is a powerful tool for creating conditional logic within your projects, allowing for more flexible and adaptive designs.

Conditional Select Input Parameters:

condition

The condition parameter is a boolean input that determines which of the two values will be selected. If the condition evaluates to true, the node will output the value_if_true; otherwise, it will output the value_if_false. This parameter is crucial as it directly influences the node's decision-making process. There are no minimum or maximum values since it is a boolean, but it must be either true or false.

value_if_true

The value_if_true parameter is the value that will be returned by the node if the condition is true. This input is evaluated lazily, meaning it is only computed if the condition is true, which helps in saving computational resources. The type of this input is flexible, allowing you to pass any data type that suits your needs. There are no default values, as it depends on the specific use case.

value_if_false

The value_if_false parameter is the value that will be returned by the node if the condition is false. Similar to value_if_true, this input is also evaluated lazily and only computed if the condition is false. This ensures that unnecessary computations are avoided, enhancing the efficiency of your workflow. Like value_if_true, this parameter can accept any data type, and there are no default values.

Conditional Select Output Parameters:

result

The result parameter is the output of the _ConditionalSelect node. It represents the value that has been selected based on the evaluation of the condition. If the condition is true, the output will be the value_if_true; otherwise, it will be the value_if_false. This output is crucial as it provides the dynamically chosen value that can be used in subsequent nodes or processes within your project.

Conditional Select Usage Tips:

  • Use _ConditionalSelect to streamline workflows by avoiding unnecessary computations, especially in complex node graphs where performance is a concern.
  • Ensure that the condition parameter is correctly set to reflect the logic you intend to implement, as this will directly affect the node's output.

Conditional Select Common Errors and Solutions:

Missing value_if_true or value_if_false

  • Explanation: This error occurs when the node attempts to evaluate a branch that has not been provided with a value.
  • Solution: Ensure that both value_if_true and value_if_false are connected or assigned a value to prevent this error.

Invalid condition type

  • Explanation: The condition parameter must be a boolean value, and providing a non-boolean input can cause errors.
  • Solution: Verify that the input for the condition parameter is a boolean (true or false) to ensure proper functionality.

Conditional Select Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-NativeLooping_testing
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Conditional Select