Hello,
I need arcade code to return borough name for each community boards. My table don't have borough name field and I can't add one. I have only community board code. Each community board start with specific number which represent each borough.
I have this code so far
var portal = Portal("https://www.arcgis.com")
var CD = FeatureSetByPortalItem(Portal,
"itemID",0,['BoroCD'], true);
if (Find("1",['BoroCD'], 0)>0) {
return "Manhattan";
} else if (Find("2", ['BoroCD'], 0)>0) {
return "Bronx";
} else if(Find("3", ['BoroCD'], 0)>0) {
return "Brooklyn";
} else if(Find("4", ['BoroCD'], 0)>0) {
return "Queens";
} else if(Find("5", ['BoroCD'], 0)>0) {
return "Staten Island"
}
return CD