Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

enter image description hereI'm merging several databases and clipping out certain areas of interest. Sometimes there are no points that are clipped because there is nothing in the clip. I have each of the features output to a geodatabase. Is there a way for it not to export the feature class to the geodatabase if the file is empty?

share|improve this question

You can use the result of the Get Count (Data Management) tool, and check it within Using If-Then-Else logic for branching logic to check for features.

share|improve this answer
I'm not sure how to write code on this. I'm trying to do it with calculate values for the next step. I don't know how to plug in an if-then going from Row Count > Calculate Values. I'm fairly new to model builder. I'm going from "Select" > "Copy Features", but I want it to stop going if there's nothing in the feature. – joebob Mar 1 '13 at 0:54
@joebob, pg 110 of Getting to Know ArcGIS ModelBuilder goes over how to use if-elif statements. – artwork21 Mar 1 '13 at 12:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.