AnsweredAssumed Answered

Arcade IF statements with AND or OR

Question asked by bhemmer_usfs on Jul 23, 2018
Latest reply on Jul 24, 2018 by cconnollyesriuk-esridist

I've searched and searched but either couldn't figure out how to word my question or it hasn't been asked. Basically, is it possible to use AND or OR in an IF statement so I don't have to make a bunch of expressions? Especially useful when it comes to pop-ups.


Example (very generalized):

I want to display a pop-up that shows one of three things; A, AB, or None. Naturally I would think of it like a definition query,

= IIf($feature["OCC_ELUM"] == 0, " ", "A")


= IIf($feature["OCC_ELUM"] == 1, " ", "AB")


= IIf($feature["OCC_ELUM"] == 2, " ", "None")


But this isn't the case. Any help?