How can I write the following conditional statement with CON?
If ((VALUE = 20 OR IF VALUE=24) then assign value 0, else 1)
Con(("Raster1", 0, 1, "VALUE =20")|("Raster1", 0, 1, "VALUE =24"),0,1)
I just canĀ“t get this to work
arcgis-desktopraster-calculator
How can I write the following conditional statement with CON?
If ((VALUE = 20 OR IF VALUE=24) then assign value 0, else 1)
Con(("Raster1", 0, 1, "VALUE =20")|("Raster1", 0, 1, "VALUE =24"),0,1)
I just canĀ“t get this to work
Best Answer
Read about Raster Calculator operators. The bar "|" symbol is the OR operator.
The correct syntax would be: