Any integration tool, will and must support this kind of flow logic. You can achieve the same via the exit step (with some flag value set in the pipeline) and use the branch step to execute the steps underneath if it is satisfied.
Let us know your code snippet in some programming language say java, we can transform the same to flow language.
Assuming you are using the loop step (for those 10 lines of doc list for IDATA array) and inside it call Branch/Sequence steps for each of the country name equalization and accordingly call the next step and exit the loop once it satisfies your conditional step.
I would caution against the use of this though. More often than not, the logic can be achieved using other structured techniques.
To provide effective guidance, however, we need to know exactly what logic needs to be achieved. Post what you have so far and, as others have requested, the pseudo code.