Workflow - Compare String 'Contains' does not work

There is no way to break the loop, and no global variable at this time.

There may be another way to solve this. Can you describe what this workflow is trying to accomplish?