Can a loop have dynamic in-, and output ports?

Hi everyone!

I would like to perform a loop, but I do not know how many in-, and output ports will the solution have (it would be embedded into a component) (I would like to process input Excels, dynamic numbers).

Could it be done in the actual version in KNIME? As I saw there are loops that can have changeable number of ports, but I couldn’t find a way to be the port number dynamic.

Thank You in advance!

The only way I can think of is using variables with switches (if, case) to direct the component to different loops, but that’s just theory. Have not tried it yet.
br

1 Like

Thank You Daniel. That could work but it would mean You have to “pre-program” the possible numbers and if You didn’t prepare high enough number, than it will run to error or will give an unsatisfying output(s).

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.