Nodes/Basic data handling/filter by keys
ComfyUI Node

filter by keys

Creates a new dictionary with only the specified keys. This node takes a dictionary and a list of keys, then returns a new dictionary containing only the key-value pairs for the keys that exist in the original dictionary.

By StableLlama·Created about a year ago·Updated 25 days ago· 45
filter by keys
  • input_dict
  • keys
  • DICT
CategoryBasic/DICT

Inputs (2)

NameTypeDefaultDescription
input_dictDICT
keysLIST

Outputs (1)

NameTypeDescription
DICTDICT