AnsweredAssumed Answered

If-Then function for writing a value in column B based on a value in column A

Question asked by rhill39 on May 27, 2020
Latest reply on May 28, 2020 by jborgion

Hello All,


I'm looking for a starting point on how to code the following in ArcPy: I need an UpdateCursor to go through every row in my feature class and write a value into a cell based on the value in another cell.  In other words, if I have two fields (RR Type and RR Width), for each row where RR Type = "Two Way," I want to write the value "12" in RR Width.

I know an UpdateCurser is needed and am thinking that I should use an If - Then function, but it's a bit over my head.  I'm still really new to Python.