The script returns arcpy.AddMessage("Feature(s) not moved"). What am I doing incorrectly to move selected features? Railroads is a Polyline Feature Class.rai = arcpy.mapping.ListLayers(mxd, "Railroads", df)[0]
EW = arcpy.GetParameter(0)
NS = arcpy.GetParameter(1)
with arcpy.da.UpdateCursor(rai, ['OID@', 'SHAPE@X', 'SHAPE@Y']) as cursor:
EWmove = 0
NSmove = 0
for row in cursor:
if row[1] >= '0':
cursor.updateRow(row)
elif row[2] >= '0':
cursor.updateRow(row)
else:
arcpy.AddMessage("Feature(s) not moved")