Hey @diagon hope all is good. Welcome to the community.
I think you could get away with no loops or with only one. I am not sure what style prompts and style types are, but here is what I tried, maybe it will give you an idea of how to get rid of loops:
This gets images and styles “in parallel”, then creates permutations of prompts and styles and then generates images based on permutations.
The point I am trying to make here is, most nodes can handle multiple items coming in and would loop over them. See this doc.
Thank you for respond but i fixed the problem different approach
Added this expression to control inner loop execution: {{ $node['Loop Over Style Variations'].context["done"] }}
The inner loop’s state wasn’t resetting between outer loop iterations. This expression checks the loop’s completion state and ensures it runs fresh for each iteration.
Thanks for the parallel processing suggestion though - that’s definitely a more scalable approach for larger datasets!