AnsweredAssumed Answered

Format info window content: Display text from a Double field

Question asked by chyang0107 on May 16, 2016
Latest reply on May 16, 2016 by rscheitlin

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 =                   "PointID: ${POINT_ID}" +                   "
Date Collection: ${Collection}" +                   "
Magnesium Value: ${Mg_Symbol}${Mg}(mg/L)" +                   "
Well Depth: ${WellDepth}(ft)" +    "
Data Source: ${DataSource}" +   "
Data Source Information: ${DataSour_1}" + "
More Information:Magnesium Info";

Outcomes