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.