I have been altering this code to learn some basics about FeatureLayers. I want to add a functionality where upon hovering over a certain county, the pop-up displays additional information, however I'm not sure how to access the results of the query. The code the tutorial uses to display the results of the query looks like this:
var t = "<b>${NAME}</b><hr><b>"but when I use
if (${NAME} == "example"){
//add information
}the viewer won't load. How can I get the information from the out-fields for each county and utilize it in the code?