One Star

twaitforfile break loop on condition

How?
I can only think of setting Max number of iterations to something like:
(Boolean.TRUE.equals(globalMap.get("tWaitForFile_1_cancelled")) ? count_tWaitForFile_1 : -1)