Is there a way to specify in an if/else statement "if fc begins with "PG", return 918? Does a * work for this? see below:
# Structure Class
Class = "StructureClass"
expression6 = "Reclass(!DAM_TYPE!)"
codeblock = def Reclass (fc):
if fc ="PG*":
return 918
elif fc = "CB*":
return 97
elif fc = "VA*":
return 98
elif fc = "MV*":
return 99
elif fc = "OT*":
return 917
else:
return None
arcpy.CalculateField_management(fc, Class, expression6, "PYTHON_9.3")