Hi All,
Thank you for your time in advance. I am wondering if anyone could provide valuable opinions how to display the text from a Double field in the info window (code listed below). I found some records have the zero value in the Double field ${WellDepth}. I want to see if anyone could provide a function to replace the 0 to display "Unknown Value" and keep the same value if the ${WellDepth} is greater than 0.
Many thanks,
Hank
var content_magnesium_depthLocation =
"<b>PointID</b>: ${POINT_ID}" +
"<br><b>Date Collection</b>: ${Collection}" +
"<br><b>Magnesium Value</b>: ${Mg_Symbol}${Mg}(mg/L)" +
"<br><b>Well Depth</b>: ${WellDepth}(ft)" +
"<br><b>Data Source</b>: ${DataSource}" +
"<br><b>Data Source Information</b>: ${DataSour_1}" +
"<br><b >More Information</b>:<a target='_blank' href='https://community.esri.com/maps/data/Water/${POINT_ID}/Mg' >Magnesium Info</a>";