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

[ad_1]

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);

[ad_2]

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