arcgis raster calculator error

Discussion created by shatayen123 on May 3, 2012
Latest reply on May 4, 2012 by fabl
I have to classify a rasterlayer of rivers. So i use the Raster Calculator with the code:
Con("riverclass1", 2,"riverclass1","(Value >= 40000) & (Value < 300000)")
But it gives me the Error: invalid sql statement used.
I only learned java so i dont really know the python syntax. So is the Syntax  wrong or some other stuff broke?
Thank you