I'm using ArcGIS 10.7 trying to calculate a speed field (for my data of roads in California) really simply such that roads = 45 and highways = 65. I know I need to use an if then statement but I'm not too familiar with Python or ArcGIS so I need a function that will allow me to say if the text string includes "FWY" OR "HWY" OR "RTE" return 65 and else = 45. Does anyone know how I could get this done? I'm fine computing with some error as its for an intro class.
Asked
Active
Viewed 20 times
0

ifstatement like,if "FWY" in upperName or "HWY" in upperName or "RTE" in upperName:(and before that you'd need to defineupperNameas the uppercase equivalent of fullname, something like,upperName = fullname.upper(). – Son of a Beach Dec 06 '19 at 03:55