
I'm getting an error with the expression in the image above. I'm basically trying to set the UNIT value to be either a "Y" or "N" depending on the value of the UNIT_NUM field (UNIT NUMBER alias). If there is no values (NULL) in the UNIT, then I want the UNIT value to be "N", otherwise I want it to be "Y". Any help with my syntax is greatly appreciated. I'm new to Arcade! 🙂 Syntax is also written below in case image doesn't come through:
var a = $feature.UNIT_NUM
var b = $feature.UNIT
var c = "Y"
var d = "N"
return IIf(!IsEmpty(a), d,
else{return c}