SyntaxFix
Write A Post
Hire A Developer
Questions
You should have if row[2] != "0". Otherwise it's not checking to see if the string value is equal to 0.
if row[2] != "0"