Field Calculator
Revision as of 21:00, 18 February 2013 by 129.120.6.150 (talk) (Created page with "Useful functions for the field calculator. ===Situs from components (python)=== Pre-logic: <pre>def concat_address(lnum, hnum, sdir, sname, stype): outstr = lnum if hn...")
Useful functions for the field calculator.
Situs from components (python)
Pre-logic:
def concat_address(lnum, hnum, sdir, sname, stype):
outstr = lnum
if hnum <> "0":
outstr += "-"+hnum
if sdir.isalpha():
outstr += " "+sdir
outstr += " "+sname+" "+stype
return outstr
field =
concat_address(!LO_ADDRESS!, !HI_ADDRESS!, !STDIR!, !STNAME!, !STTYPE!)