AnsweredAssumed Answered

UpdateCursor help

Question asked by Ryanthomas88 on Jan 23, 2019
Latest reply on Jan 23, 2019 by Dan_Patterson



I am having issues using the update cursor function. This is what I have written, I get no errors but it does nothing:


with arcpy.da.UpdateCursor("test1", ["SYM", "FLD_ZONE","Label", "ZONE_SUBTY"]) as rows:

...     for row in rows:

...        if row[3] == "" and row[1] in ["A", "AE", "AH", "AO", "VE"]:

...           row[0] = 100

...           row[2] = row[1]

...           rows.updateRow(row)


basically if row[3] is empty and row[1] has these " " , update these rows with this