tomdilts

con statement - desktop help incorrect

Discussion created by tomdilts on May 17, 2011
Latest reply on May 18, 2011 by Dan_Patterson
Hi everyone,

Earlier today I realized that the syntax in ArcGIS Desktop Help for the con statement in Map Calculator for ArcGIS 10 is incorrect.  In the Help they write it as:

Con((InRas1 > 5 & InRas1 < 10), 5, 100)

I was able to successfully the statement below:

Con((("%max%" > 0)  & ( "%Input Canopy Height%" < 10)), "%Input Bare Earth DEM%" + 10, "%Input Surface%")

This means that the Help statement should be written as:

Con(((InRas1 > 5) & (InRas1 < 10)), 5, 100)

In my case I was getting an error when I didn't have the third set of parentheses.  I'm not sure if it has to do with the fact that I used two different rasters instead of one.

Outcomes