Hello!
I'm dabbling back into python and scripting (it's been about 7 years since I last wrote scripts) and I'm trying to create a script tool to help with some of my property data updates that I do as part of my workload, I typically do all of this manually, so this tool will greatly cut down the time it takes to do this task.
I'm getting hung up on the Calculate Field function and I'm hoping you all can help me:
My shapefile has three fields ('USER_FNAME', 'USER_LNAME' and 'USER_CORPN') that I'm pulling information from to populate a new field: 'NAME'. I want the script to first-off populate NAME with !USER_LNAME! + " " + !USER_FNAME! (easy, done...) but then, I would like to then select all values that are blank (or " ") in the NAME field and calculate the selected records to populate NAME with !USER_CORPN!. This way, it doesn't overwrite the !USER_LNAME! + " " + !USER_FNAME! statement.
I feel like I possibly need an if/else statement or something in the code block but I'm getting lost in all the arc help documents lol.