Using 'if' condition in Model Builder

Discussion created by chelseadsmith on Jul 26, 2012
Latest reply on Aug 2, 2012 by chelseadsmith
Hi folks,

I have a model that processes two separate polygon shapefiles with a calculated 'area' field in each. I am thinking about using a tool with an expression to select which of the two polygons has the larger area, in order to use the 'Erase' tool to erase the larger polygon using the smaller polygon. Everytime the model is run there will likely be a different outcome of which of the two polygons has the larger area.

I have used the 'If' and 'Else' condition in Python before, however I have not used it to query a value in an attribute table, and not sure how to ask it to do that.

Any help is greatly appreciated!