Nodes/Wildcard Pipeline/WP Var → Choice
ComfyUI Node

WP Var → Choice

Send a $variable into a dropdown input (checkpoint, sampler, scheduler, VAE…). Matches it against that input's options.

By DumiFlex·Created 7 months ago·Updated 4 days ago· 12
WP Var → Choice
  • context
  • wp_var_name
  • choice
◄matchloose►
◄fallback(first option)►
◄if_no_matchuse fallback►
Categorywildcard-pipeline

Inputs (5)

NameTypeDefaultDescription
contextPIPELINE_CONTEXTThe resolved $variable context from any upstream WP Context / Loop / Injector chain.
wp_var_nameWP_VAR_PICKER—
matchCOMBOlooseexact: the text must equal an option. loose: ignores case, folders, the file extension and spaces, then takes the shortest option that starts with or contains the text. closest: also forgives typos.
fallbackCOMBO(first option)Used when nothing matches or the variable is empty. Lists the options of the input choice is wired into.
if_no_matchCOMBOuse fallbackuse fallback: carry on with the fallback and warn. stop the run: fail here with the options listed.

Outputs (1)

NameTypeDescription
choice*Wire into a dropdown input: ckpt_name, sampler_name, scheduler, vae_name, lora_name and so on.