I am trying to write a script where you preemptively select features and then go to the tool which calls for the feature layer and it populates fields based on certain criteria which I will design of the selected features.
I am simply trying to populate fields right now using the Update Cursor, but the field still come up blank.
here is my code so far:
input= arcpy.GetParameterAsText(0) fields= ['Conf','Com'] with arcpy.da.UpdateCursor(input,fields) as cursor: for row in cursor: row == '2' cursor.updateRow(row) del row del cursor
Why are the selected features, or any feature for that matter not updated?