The problem is that the field is a String. The empty value for the ARCLENGTH field contains a space. The below code should work:mxd = arcpy.mapping.MapDocument("CURRENT")
for lyr in arcpy.mapping.ListLayers(mxd):
dsc = arcpy.Describe(lyr)
sel_set = dsc.fidSet
if dsc.shapeType == "Polyline":
rows = arcpy.SearchCursor(lyr, "OBJECTID = " + sel_set)
for row in rows:
arcLength = row.ARCLENGTH
shapeLength = row.shape.length
if len(arcLength) > 1:
print arcLength
else:
print shapeLength
del row, rows