Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Streamlining user types in Qlik Cloud capacity-based subscriptions: Read the Details
cancel
Showing results for 
Search instead for 
Did you mean: 
navds
Creator II
Creator II

Breaking from tFlowToIterrate

Hi all.

I wonder if any of you has some tricks to exit from tFlowToIterrate iteration like a break in a for loop.

Labels (2)
1 Solution

Accepted Solutions
fdenis
Master
Master

you are true but it's the only (quick) way you have to structure job and sub job for it.
an other way is to skip all next iteration.
add a global var and test it before each iteration.

View solution in original post

5 Replies
fdenis
Master
Master

tDie !

 

aashish_21nov
Creator
Creator

you can process outflow as:

 

tFlowToIterate-->tjava(*handle break condition)-->tDie

navds
Creator II
Creator II
Author

Correct me if I'm wrong but doesn't tDie stop the processing of current job? What I want is exiting only the iteration 

fdenis
Master
Master

you are true but it's the only (quick) way you have to structure job and sub job for it.
an other way is to skip all next iteration.
add a global var and test it before each iteration.
navds
Creator II
Creator II
Author

I will accept this as a solution but before, I will profit to ask what if I want this time to exit a flow, I mean if a line match a given condition, don't process the remaining lines.