Nodes/Wildcard Pipeline/WP Var → Int
ComfyUI Node

WP Var → Int

A ComfyUI node in wildcard-pipeline with 4 inputs and 1 output.

By DumiFlex·Created 5 months ago·Updated 10 days ago· 9
WP Var → Int
  • context
  • wp_var_name
  • value
index0
default0
Categorywildcard-pipeline

Inputs (4)

NameTypeDefaultDescription
contextPIPELINE_CONTEXTThe resolved $variable context from any upstream WP Context / Loop / Injector chain. Required — without it the node has no variables to read.
wp_var_nameWP_VAR_PICKER
indexINT00–999Which number in the value to extract when multiple are present (0 = first).
defaultINT0-9223372036854776000–9223372036854776000Value to use when the variable is missing or the index is out of range. The node never errors — it falls back to this.

Outputs (1)

NameTypeDescription
valueINT