Arcade statement:
IIf($feature.HOLE = "HORIZONTAL",1,2)
Error: Arcade cannot assign to constant value. Why? I am trying to set up weighting criteria. I tried setting the field to both long and short numbers, but still get errors. All help appreciated. thank you.
Solved! Go to Solution.
Try:
IIf($feature.HOLE == "HORIZONTAL",1,2)
That worked, thanks! Too bad ESRI has it wrong or incomplete in their documentation! Thank you again! CORRECTION: ESRI does have it correct, I was not using the Arcade syntax but thinking of the Desktop simple and obvious language no longer used. Sigh. New tricks are hard.
Please close out this question if everything is working for you.
I don't know how...though it looks like I have.
Where is that incorrect in the documentation?