ComfyUI Node
WP Var → Choice
Send a $variable into a dropdown input (checkpoint, sampler, scheduler, VAE…). Matches it against that input's options.
WP Var → Choice
- context
- wp_var_name
- choice
◄matchloose►
◄fallback(first option)►
◄if_no_matchuse fallback►
Categorywildcard-pipeline
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| context | PIPELINE_CONTEXT | The resolved $variable context from any upstream WP Context / Loop / Injector chain. | |
| wp_var_name | WP_VAR_PICKER | — | |
| match | COMBO | loose | exact: 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. |
| fallback | COMBO | (first option) | Used when nothing matches or the variable is empty. Lists the options of the input choice is wired into. |
| if_no_match | COMBO | use fallback | use fallback: carry on with the fallback and warn. stop the run: fail here with the options listed. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| choice | * | Wire into a dropdown input: ckpt_name, sampler_name, scheduler, vae_name, lora_name and so on. |