Empty Selection Sets in ModelBuilder

Discussion created by dgreen28 on Jun 1, 2011
I'm currently making a model using ModelBuilder in ArcGIS 9.3.1. One of my steps involves.

1) Making a feature layer from a feature class.
2) Selecting by attributes on a field in that class.
3) Deleting the selected rows and exporting this to a new feature class.

Here is the catch. Sometimes my input file may not have the criteria that is to be deleted and the select by attributes will return an empty selection. The delete doesn't run in that case and the feature class is not outputted.

Is there any way to detect if a feature layer selection is empty an skip the delete step? (In modelbuilder)