title: How to end tLoop when desired criteria reached
body: <p>Here is my process: </p>
  
  <p><img src="https://i.stack.imgur.com/3JtZp.jpg" alt="Job Layout and tJava_1 configuration"></p>
  
  <p>You can see the Java code in tJava_1. It parses out the data from the file and if it reached the last search page it will set a value to true. This is meant to be the stop criteria for the tLoop_1, as shown here:</p>
  
  <p><img src="https://i.stack.imgur.com/yKCBz.jpg" alt="tLoop configuration"></p>
  
  <p>Am I handling the Talend variables wrong? How can I stop the loop from running once I reached the criteria in my Java code?</p>