In case of
i just need to put only One Name in the output field.
For Example
Case "0901" output = "Bayonne"Case "0902" output = "East Newark"Case "0903" output = "Guttenberg"Case "0904" output = "Harrison"
Case "0805" output = "Hoboken"Case "0906" output = "Jersey City"Case "0807" output = "Kearny"Case "0808" output = "North Bergen"Case "0809" output = "Secaucus"In 09 Series i have to put only "Bayone" and in 08 series i have to put only Newyork in this case what should i do.
Select Case [MUN] Case "0901" output = "Bayonne" Case "0902" output = "East Newark" Case "0903" output = "Guttenberg" Case "0904" output = "Harrison" Case "0905" output = "Hoboken" Case "0906" output = "Jersey City" Case "0907" output = "Kearny" Case "0908" output = "North Bergen" Case "0909" output = "Secaucus" Case "0910" output = "Union City" Case "0911" output = "Weehawken" Case "0912" output = "West New York" Case Else output = [MUNI] End Select
def customReplace(x): if x=='0901': return 'Bayonne' elif x=='0902': return 'East Newark' elif x=='0903': return 'Guttenberg' #etc. else: return "Not Found"
customReplace( !MUN! )
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.