Loops in node red

Hello Everyone ,

I am new to node-red
I am trying to create a flow in which i have to loop for condition and within loop i need to add sub flows based on value of loop .
ex --
index value -- sce1 then subflow sc1 likewise .

Any help willl be great .

thnks/

Welcome @rjdugar

Do you mean you want each each iteration of the loop to call a different subflow instance?

One way would be to have a counter property on the message that you increment each time you loop, and then use a Switch node to route the message to the appropriate subflow instance node based on the counters value.

Does that make sense?

(btw, have moved to the #general category as #development is for development of Node-RED itself, not general usage questions)

thanks will note tht .