Talend tForeach is the same as the foreach loop that creates a loop and iterates the same. In this chapter, we show you a simple example of the tForeach.
Drag and drop the tForeach component to the job designer window.
As you can see from the tForeach below, it has only the Values section in the Component tab to add values for the foreach iteration.
Let me use the + button to add few values.
Next, we used the tJava component to display or print those foreach iteration values.
From the below tForeach image, you can see that it has been executed 7 times for all the values, and displayed the result using the println statement.