Arcade: I Need the Opposite of IsEmpty Inside a When Statement

3934
2
Jump to solution
05-16-2019 11:11 AM
deleted-user-1_r2dgYuILKY
Occasional Contributor III

I have an intersect layer (footprintMatch) in an Arcade expression. I'm setting up a when conditional statement that starts with:

When(propCode == '100' && IsEmpty(permitYear) && IsEmpty(footprintMatch),
,'',...)‍‍

That's when the property code is vacant residential land and there has not been a construction permit issued and there is no building footprint, then return nothing. That's truly vacant land.

The next conditional I need would be the following scenario:

property code is vacant and there is no construction permit, but there IS a building footprint, then return instructions to view the building footprint in an aerial photo basemap for confirmation. I'm trying to figure out the opposite of IsEmpty. Like how do I signify that there is a match from that intersect layer? In Python I could just place the variable as follows:

When(propCode == '100' && IsEmpty(permitYear) && footprintMatch,
,'Confirm building footprint in aerial photo',...)

Do I need to nest an Iif statement in the when statement?

0 Kudos
1 Solution

Accepted Solutions
XanderBakker
Esri Esteemed Contributor

If you want to negate the IsEmpty statement you can use:

IsEmpty(footprintMatch) == False

or shorter:

!IsEmpty(footprintMatch)

View solution in original post

2 Replies
XanderBakker
Esri Esteemed Contributor

If you want to negate the IsEmpty statement you can use:

IsEmpty(footprintMatch) == False

or shorter:

!IsEmpty(footprintMatch)
deleted-user-1_r2dgYuILKY
Occasional Contributor III

Thanks!

0 Kudos