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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Break out of tJavaRow

Is there anyway to go to the next record without inserting the existing record that tJavaRow is parsing?
I used the java break; command it just kills the job.
I'm trying to skip the record and go to the next.
I understand its a big for loop.
Labels (3)
2 Replies
Anonymous
Not applicable
Author

Hi
Let's say we have the following data below.
id; name
1; a
2; b
3; c
If we only want the first two rows, the code in tJava should be like this.
if(input_row.id<3)
output_row.id = input_row.id;
// if input_row.id =3 do nothing

Regards,
Pedro
alevy
Specialist
Specialist

Use continue rather than break.