yde

If - Then- Function in FieldCalculator

Discussion created by yde on Feb 5, 2012
Latest reply on Feb 9, 2012 by robejone
Hi!
Could so help me with Python or VB.Net?
I have got an attribute table with 3 colums. In each colum is an "X" or nothing. With a new field, I want to ask in wich colum is the X and if there is a X then write "KA", "E" or "O"

Example:

KA E O
A1 A2 A3---A4
X-----------KA
----X--------E
-------X-----O

In Excel this is correct:
=If(A1="X";"KA";If(B1="X";"E";If(C1="X";"O";"false")))
(double X values arent´t in)

How can I do this in Python or VB.net?

I have ArcGIS10 with Editor-License

LG

Outcomes