
I am having trouble with something very simple. I have a feature layer called 28Day_Breaks that has a field called Average_28_Day_Result_PSI that has numeric values between 2,000 and 10,000. I am using for symbology a symbol with green fill color (I have the HEX #6CE830 and black outline) and I want to change the fill of the circle when Average_28_Day_Result_PSI is < 6,000 to red #E83030 and leave the fill to #6CE830 color when it's above 6000.
var BreakPercent = Round( ($feature["Average_28_Day_Result_PSI"]/6000)*100)
return BreakPercent
if (BreakPercent < 100 ) {
Return $feature["Average_28_Day_Result_PSI"]=="#E83030";
}
else {
Return $feature["Average_28_Day_Result_PSI"]=="#6CE830";
}
=====================
When I press Test
Result Value
Result 79
Type Number
The symbols in green – fill is not changing color for values of BreakPercent < 100
Any Thoughts?
JM