ComfyUI Node
Foreach List Begin Ovum
A starting node for performing iterative tasks by retrieving items one by one from the ITEM_LIST. Generate a new accum using item and accum as inputs, then connect it to ForeachListEndOvum. NOTE: If no explicit seed is provided via init_accum, an empty list is used as the seed and iteration starts from the first item.
Foreach List Begin Ovum
- py_list
- init_accum
- flow_control
- remaining_list
- accum
- value
- index
- array
Categoryovum/loop
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| py_list | ITEM_LIST | A list containing items to be processed iteratively. | |
| init_accumopt | * | Initial value for the accumulator (accum) before processing items. |
Outputs (6)
| Name | Type | Description |
|---|---|---|
| flow_control | FOREACH_LIST_CONTROL | Pass ForeachListEndOvum as is to indicate the end of the iteration. |
| remaining_list | ITEM_LIST | Output the ITEM_LIST containing the remaining items during the iteration, passing ForeachListEndOvum as is to indicate the end of the iteration. |
| accum | * | Output the accumulated results during the iteration. |
| value | * | Output the current item during the iteration. |
| index | INT | The index of the current item (starting at 0). |
| array | ITEM_LIST | An immutable copy of the input list. |