ComfyUI Node

filter

Filters a Data List using boolean values. This node takes a value Data List and a filter Data List (containing only boolean values). It returns a new Data List containing only the elements from the value list where the corresponding element in the filter list is False. If the lists have different lengths, the last element of the shorter list is repeated till the lengths are matching.

By StableLlama·Created about a year ago·Updated 25 days ago· 45
filter
  • value
  • filtered_list
filter
CategoryBasic/Data List

Inputs (2)

NameTypeDefaultDescription
value*
filterBOOLEAN

Outputs (1)

NameTypeDescription
filtered_list*