I have a program that creates a .txt file, the script reads the .txt file row by row and prints the results. I am having trouble with the following situation.

if (ddt_val(FileName,"Element")=="abc" &&

I need to advance to a different row in the file to verify the data in a different element. If this new row data equals a certain value, I print "PASS" to the report, if not, I print "FAIL". The "PASS" and "FAIL" have to reference the element and data from the original row that I'm checking not from the second row that's checked.

I used the ddt_next_row while != certain_element to advance to the row I needed, but I can't get back to the original row to print the information in the report.