Hello,
I am using the arcade expressions for a popup feature for emergency statuses. When you click on the land parcel of interest, if the parcel intersects with the evacuation polygon it will say the Type field: 'Evacuation Alert'. But if you are not in an evacuation alert area; I would like it to say 'None'.
This is currently how I have the code which is how it is displaying on the below images:
I have reviewed the other posts from these two below, I don't know what's going wrong here.
https://community.esri.com/t5/arcgis-pro-questions/arcade-if-else-do-nothing/td-p/207436
You're checking the layer for null, which it never will be.
What you want to do:
var evac_fs = FeatureSetByName($map,"RDNO Evacuation Areas")
var evac = First(Intersects(evac_fs, $feature))
return IIf(evac == null, "None", evac.Type)