I apologize in advance, I am new to ArcGIS Pro. Is there an IF statement that can be calculated that says if the Street Name field begins with "State Highway" then return "State Highway" in the Street Pre Type field?
Attached is a screenshot showing the two fields in the feature class.
Solved! Go to Solution.
Here's a sample with a few notes in the attached screen shot. Good luck. use of python for function with string comparison
Open the field calculator on the empty field (field1), set to Python.
In code block put your if statement in a function:
def check_value(field2):
if "X" in field2:
return "X"
elif "Y" in field2:
return "Y"
else:
return None
Then in the top box call your function and point it at the second field:
check_value(!Field2!)
Hi Cameron!
Why yes there is.
I think this help page will supply you with what you need.
Let us know how you did!
Here's a sample with a few notes in the attached screen shot. Good luck. use of python for function with string comparison