I am trying to create a simple Display Expression in Expression Builder using Arcade. I want the expression to return the Unit, unless it is null, if null I want it to then display Building, unless that is null, if null I want it to finally display the Room. So far, my expression returns Unit, but nothing past that. What am I doing wrong?
return $feature.Unit;
if(isempty ($feature.Unit)){
return $feature.Building
}
else if(isempty ($feature.Building)){
return $feature.Room
}