I am trying to write an arcade expression for the "Set Transparency from Attribute Values" option in AGOL.
MY goal is to evaluate if a date field is empty and set a 50% transparency value if the field is NOT empty. So the value in the field is not important, only if it is empty or not. I have tried using an Iif/IsEmpty statement like this to create integer values that the transparency can be set from, but this doesn't seem to be working.
IIF(IsEmpty($feature.TrunkProtect), "0", "1")
I would also like to only apply this expression to points that have a creation year of 2017, which is tracked in a separate field.
<SPAN class="" style="color: var(--black-750); border: 0px; font-weight: inherit; font-size: 13px;"> </SPAN>