Hi, novice coder here. I am building a web map, trying to use an Arcade expression for my pop-up.
The attribute is "COType" (cluster and outlier type) and the options are 1) "High-High Cluster" 2) "Low-Low Cluster" 3) "High-Low Outlier" 4) "Low-High Outlier" or 5) blank (not statistically significant).
I want to find an expression where, for each of the COType options, I want it to return a string that describes what the COType means.
This is what I have:
if ($feature.COType == "High-High Cluster"):
print("which means this tract and its neighbors have high values.")
if $feature.COType == "Low-Low Cluster":
print("which means this tract and its neighbors have low values.")
if $feature.COType == "High-Low Outlier":
print("which means this tract has high values while its neighbors have low values.")
if $feature.COType == "Low-High Outlier":
print("which means this tract has low values while its neighbors have high values.")
else:
print("is not statistically significant")
When I try to run it, it says "unexpected token" or "unexpected identifier." Is there a print feature for Arcade? If so, what's the syntax? Thank you so much.