Hi @duristef , sorry, now I see what you mean. At first, I thought you were asking about the assignment, and then I thought you were asking why we were doing the validation on [i].
Yes, you are correct! The for loop will only run if output_table_1['Cleared?(Yes/No)'][i] != "Yes", hereby rendering the check in the loop unnecessary.
And you are correct. This was meant to be output_table_1[‘Cleared?(Yes/No)’][j] == “Yes”
EDIT: @Abhiram , here’s the updated version: Row Comparison.knwf (21.7 KB)
You still haven’t answered why you are separating Case I into another Python Script node? The problem with doing this is that now you have 2 nodes to maintain and also execution-wise, it’s inefficient as both share some base conditions, meaning they have to be evaluated twice.