Join colum,ns based on results of last join column

I want to implement a loop in KNIME that keeps performing the join operation until there are no more matching records (i.e., the join result is empty). The first join uses Col ‘PartNo.’ and joins it with bottom table col ‘COMPNTPARTNBR’. the output includes col ‘ASSEMBLYPARTNBR’ from the bottom input table and Partno from the first table.

now the second join will join the join the column ASSEMBLYPARTNBR (level 2) with COMPNTPARTNBR from the bottom table. the third join will use ASSEMBLYPARTNBR (level 3) with COMPNTPARTNBR. so and so forth. How can i create a loop for this until there are no matching COMPNTPARTNBR for the ASSEMBLYPARTNBR (level n).