I've just had this edit rejected, presumably for making some huge changes to the question.
The original question really contained two questions, one about how to exit a loop and then another about a specific issue that was causing Talend to fail to compile.
The question had more detail on the compilation error (and that needed sorting first anyway) so I answered it and then had my answer accepted. I suggested to the OP to raise a second question about exiting the loop which they did.
I then sought to tidy up that first question to put more focus on the compilation error and remove all mention of the looping problems so that it could be more use to others (it could be argued that this might actually be too localised and it's actually pretty poor as the OP simply missed a parenthesis) and to distance it from the other question about controlling while loops in Talend.
Should I have left it as it was? I recognise it was a large edit to make but it seemed to make the two questions more clear because of it.