How to use two loop over item

Hello, I hope you’re doing well. I have two “Loop Over Items” nodes in my workflow. Could you please advise where I should connect the first “Loop Over Items” (Loop Over Items1)?

I tried connecting the “Done” output from the second loop back to the first one, but it doesn’t seem to work as expected.

hello @Med_FutureXAI

You can’t connect them this way. Use sub-workflow instead

How can you give example

Please, share the workflow.

You can select all nodes with ctrl+a, copy it with ctrl+c. Then past the content here after pressing button </> with ctrl+v.

Generally, you can move the nodes inside the Loop to the sub-workflow and run the Execute node instead of the Loop one.