[Solved] How do I access $NAME variable in a if else statement?


We can access $NAME outside the infotemplate in the following way…
var t = “${NAME}


Incidents:”;+inc // String substitution method
var content = esriLang.substitute(evt.graphic.attributes,t);

solved How do I access $NAME variable in a if else statement?