Nodes/ComfyAngel/ComfyAngel_LoopEndAdvanced
ComfyUI Node

ComfyAngel_LoopEndAdvanced

Ten result slots for heavyweight loop collection

By ThepExcel·Created 8 months ago·Updated about a month ago· 14
ComfyAngel_LoopEndAdvanced
  • flow
  • result0
  • result1
  • result2
  • result3
  • result4
  • result5
  • result6
  • result7
  • result8
  • result9
  • results0
  • results1
  • results2
  • results3
  • results4
  • results5
  • results6
  • results7
  • results8
  • results9

Loop End Advanced is the big sibling of Loop End 🪽: instead of two result slots, it collects up to ten. You feed it a flow from a Loop Start (Advanced) and up to ten result0result9 inputs, and it returns the same ten as accumulated outputs results0results9. Everything about the simple version's accumulation contract applies - tensors concatenate into batches, strings and other types pile up in lists - there's just ten times the surface area.

When ten slots actually earn their keep

Honestly? Rarely. The two-slot simple loop handles the overwhelming majority of batch work: images out one slot, captions or filenames out the other. Where the advanced version shines is when every iteration of a loop produces several things you need kept separate - an image, its prompt, its seed, its metadata string, its upscale - and you want each stream collected independently instead of jumbled together. That's a genuinely awkward shape with two slots and a natural fit with ten.

The one required input is flow, and it must come from a Loop Start (Advanced) - the node validates the origin class and errors out otherwise, same as the simple End. The ten result inputs are all optional; any you leave unwired simply aren't accumulated. And like the simple version (since v0.6.0), it's an output node, so it executes even with nothing connected downstream - a loop that saves its own images will run to completion with every results socket empty.

The catch: it's hidden, like its Start counterpart

Both advanced loop nodes are marked deprecated in the current build, which means they're out of the node menu (visible only with "Show deprecated" enabled) and the pack's README and example workflows are all built around the simple pair. The author's own stance is effectively "simple is the product; advanced is the scaffolding." They still load and run if a workflow references them, and the code is intact - this is a "kept for compatibility, not promoted" situation.

How it works

Same engine as every ComfyAngel loop: on each pass it uses ComfyUI's dynamic graph execution to rebuild the loop body with the next index, threading the ten accumulated values through the flow state so nothing is lost between iterations. The recursion stops when an internal comparison reports the index has hit the batch's length. It requires a ComfyUI build with the comfy_execution module - on an old install you'll get a RuntimeError rather than a graceful fallback.

Installing it

One pack install covers all of ComfyAngel:

cd ComfyUI/custom_nodes
git clone https://github.com/ThepExcel/ComfyAngel.git

Restart ComfyUI, or grab "ComfyAngel" from ComfyUI Manager. Pillow is the sole Python dependency; there are no model files to download.

The bottom line: if you've outgrown the two result slots and need streams kept separate, Loop End Advanced is there - just know you're using the hidden, un-promoted path, and keep your per-iteration outputs shape-consistent or the accumulated results will degrade from a batch into a list without any error telling you so.

CategoryComfyAngel/Loop

Inputs (11)

NameTypeDefaultDescription
flowFLOW_CONTROL
result0opt*
result1opt*
result2opt*
result3opt*
result4opt*
result5opt*
result6opt*
result7opt*
result8opt*
result9opt*

Outputs (10)

NameTypeDescription
results0*
results1*
results2*
results3*
results4*
results5*
results6*
results7*
results8*
results9*