Quantcast
Channel: Question and Answer » arcpy
Viewing all articles
Browse latest Browse all 767

Using arcpy, update value in one field based on value in another

$
0
0

I am creating a level of service tool and I need to update the number of lanes field based on the operation type of the road. What I need it to do is: if the operation type equals 2W, then the number of lanes needs to be divided by 2.

for row in rows:
    for field in fields:
        if optype == "2W"
        arcpy.getValue(lanes / 2)

Viewing all articles
Browse latest Browse all 767

Trending Articles