ComfyUI > Nodes > Basic data handling > filter select

ComfyUI Node: filter select

Class Name

Basic data handling: DataListFilterSelect

Category
Basic/Data List
Author
StableLlama (Account age: 861days)
Extension
Basic data handling
Latest Updated
2026-05-07
Github Stars
0.04K

How to Install Basic data handling

Install this extension via the ComfyUI Manager by searching for Basic data handling
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Basic data handling 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

filter select Description

DataListFilterSelect filters a value list into two outputs based on a boolean filter list.

filter select:

The DataListFilterSelect node is designed to efficiently filter a data list based on boolean values, providing a powerful tool for data manipulation. This node takes two lists as input: a value list and a filter list composed solely of boolean values. It processes these lists to produce two separate output lists. The first output list contains elements from the value list where the corresponding boolean in the filter list is True, while the second output list contains elements where the corresponding boolean is False. This functionality is particularly useful for categorizing or segmenting data based on specific conditions or criteria. The node also handles cases where the input lists are of different lengths by repeating the last element of the shorter list to match the lengths, ensuring seamless operation without errors.

filter select Input Parameters:

value

The value parameter is a list of any data type that you wish to filter. This list serves as the primary data source from which elements will be selected based on the corresponding boolean values in the select list. The length of this list can vary, and if it is shorter than the select list, its last element will be repeated to match the length of the select list. There are no specific minimum or maximum values for this parameter, as it can contain any type of data.

select

The select parameter is a list of boolean values (True or False) that determines which elements from the value list are included in the output lists. Each boolean value in this list corresponds to an element in the value list, dictating whether it should be included in the true output list or the false output list. If this list is shorter than the value list, its last element will be repeated to match the length of the value list. This parameter is crucial for the filtering process, as it directly influences the categorization of the value list elements.

filter select Output Parameters:

true

The true output parameter is a list containing elements from the value list where the corresponding boolean value in the select list is True. This list represents the subset of the value list that meets the criteria specified by the select list, allowing you to easily identify and work with elements that satisfy certain conditions.

false

The false output parameter is a list containing elements from the value list where the corresponding boolean value in the select list is False. This list provides a complementary subset to the true list, enabling you to separate and manage elements that do not meet the specified criteria.

filter select Usage Tips:

  • Ensure that the select list is correctly aligned with the value list to achieve the desired filtering effect. If the lists are of different lengths, remember that the node will repeat the last element of the shorter list to match the lengths.
  • Use this node to quickly segment data into two categories based on boolean conditions, which can be particularly useful for tasks such as data cleaning, preprocessing, or analysis.

filter select Common Errors and Solutions:

Mismatched list lengths

  • Explanation: The value and select lists have different lengths, which might lead to unexpected results if not handled properly.
  • Solution: The node automatically repeats the last element of the shorter list to match the lengths, but it's good practice to ensure your lists are of the same length before processing to avoid confusion.

Invalid data types in select list

  • Explanation: The select list contains non-boolean values, which can cause the node to malfunction.
  • Solution: Verify that all elements in the select list are boolean (True or False) to ensure proper operation of the node.

filter select Related Nodes

Go back to the extension to check out more related nodes.
Basic data handling
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.

filter select