I am a very beginner with Python, so that will be an easy task for most of you. 🙂
I want to calculate a new field of an attribute table, something like that: ((Field X/ Field Y)*100). Since 0-Values are existent, I have to exclude these values from dividing. What I tried so far is displayed in the screenshot, but doesnt word untill now... (Perhaps it is totally wrong...)
I have created a sample feature class with three columns a,b and c. A and B are Long and C is a double. The code in the attached screenshot works fine:
[ATTACH=CONFIG]29490[/ATTACH]
Try changing your square brakets in your expression to normal brackets ()
I have created a sample feature class with three columns a,b and c. A and B are Long and C is a double. The code in the attached screenshot works fine:
[ATTACH=CONFIG]29490[/ATTACH]
Try changing your square brakets in your expression to normal brackets ()