I\'m trying to create or delete an object based on certain conditions. I am looping through rows on a csv as below. My problem is I am restricted as my variables are defined