Files
DumiFlex-ComfyUI-Wildcard-P…/docs/help/WP_VarToFloat.md
T
Dumitru Picalau 0368201dc8 docs: rewrite the user docs in plain words (#94)
Every built-in docs page, node help panel and the README is shorter and
plainer, with new screenshots of the current nodes. The AI assistant page
is split into short pages, a new How to group covers variations, making
picks agree, keeping something steady, sharing and troubleshooting, and
wildcard import has its own page. The warnings reference uses WP Debug's
labels, the AI image descriptions match the new screenshots, and the
release notes are rewritten in plain words. Local models need at least
16k of context; 32k is recommended.
2026-10-22 06:26:44 +02:00

640 B

WP Var → Float

Reads a $variable from the upstream Context and emits a FLOAT.

Inputs

Name Type Notes
context context Required. From a WP Context.
var_name dropdown Pick from upstream $vars.
index INT Which float match in the var's value.
default FLOAT Returned when no Nth match.

Parsing rule

Finds the numbers in the value, in order, and returns the one at index (0 is the first). Whole numbers count ("1920" → 1920.0), and so does scientific notation.

  • "strength: 0.85, scale: 1.5" index 1 → 1.5
  • "3.2e-4" index 0 → 0.00032