Hi I have the following code that is very similar to the JS sample https://developers.arcgis.com/javascript/jssamples/find_popup.htmlSometimes the CITY_NAME field will be null. When that occurs I would like it to say "n/a" rather than "Null." It shows up as "Null" capitalized. if (layerName === 'County_City_Py') { var CityCountyTemplate = new InfoTemplate("", "City: ${CITY_NAME} <br/> County: ${COUNTY} <br/> State: ${STATE_NAME}"); CityCountyTemplate.setTitle("Search Result") feature.setInfoTemplate(CityCountyTemplate); }
I have tried a combination of if/then statements including:if (${CITY_NAME} != null) {
Unexpected token { errorand if ("${CITY_NAME"} != null) {
No error but doesn't work.Thank you!