Field calculator and looping for different rows

المشرف العام

Administrator
طاقم الإدارة
I have an attribute table as attached and need to use python script code that can hold values as a loop in field calculator model builder and at the end added up all numbers as sum by entering it back to a field. I appreciate who can help me on this situation.

as an example:

if A Lid and B=Green and H=60 return 1 +E Lid and D=Green and C=60 return 1 = 2 and put this number in field F otherwise just 1.

if A Lid and B=Blue and H=90 return 1 +E Lid and D=Blue and C=90 return 1 = 2 and put this number in field G.

The size and color can be different values that should be matched by condition and returning values and adding them at end.





أكثر...
 
أعلى