ComfyUI Node
WFA Prompt Counter ⚡ (WFA Suite)
A ComfyUI node in WFA Node Suite/Iterators with 3 inputs and 2 outputs.
WFA Prompt Counter ⚡ (WFA Suite)
- prompts
- end_index
- count
◄modeauto-detect (Inspire / lines / list)►
◄inspire_prompt_file<use connected prompts wire>►
CategoryWFA Node Suite/Iterators
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| mode | COMBO | auto-detect (Inspire / lines / list) | How to count prompts when a text string is connected: • auto-detect: Automatically detects Inspire '---' blocks, ZIPPED_PROMPT lists, or multiline prompt lists. • inspire format: Counts '---' separated prompt blocks. • lines (non-empty): Counts non-empty lines. • lines (up to last non-empty row): Returns highest row index + 1 (ideal for indexed row lists). |
| inspire_prompt_file | COMBO | <use connected prompts wire> | Optional: If no wire is connected to `prompts`, reads the prompt count directly from this Inspire Pack prompt file. |
| promptsopt | * | Connect Inspire `zipped_prompt`, a multiline prompt `STRING`, or any `LIST` here. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| end_index | INT | 0-based last index (count - 1). Connect this directly to `end_index` on WFA Loop Iterator! |
| count | INT | Total number of prompts found. |