int(arcpy.GetCount_management(featureClass).getOutput(0))
initialCount = int(arcpy.GetCount_management(featureClass).getOutput(0)) # do selection on featureClass selectedCount = int(arcpy.GetCount_management(featureClass).getOutput(0)) if initialCount != selectedCount: # do stuff else: # no selection, don't do stuff
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.