Hi All,
I have successfully created a logical function using IIF but the end result is not appearing as I'd like.
I followed this previously asked question:https://community.esri.com/thread/225577-arcade-expressions-conditionals-and-popups as what I want is similar. It seems like using the IIF would not cause my expression to show up on the pop-up if it was FALSE.
Below is my expression. The expression is labelled "Custom"
<SPAN class="token function">IIF</SPAN><SPAN class="punctuation token">(</SPAN>$feature<SPAN class="punctuation token">[</SPAN><SPAN class="string token">"TYPE"</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="operator token">==</SPAN><SPAN class="string token">'STRAW'</SPAN><SPAN class="punctuation token">,</SPAN> $feature<SPAN class="punctuation token">[</SPAN><SPAN class="string token">"TYPE"</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="punctuation token">,</SPAN><SPAN class="string token">""</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
The function works as expected and it returns this on my pop-up
My issue though is if $feature["TYPE"] != 'STRAW' my pop-up displays
What I want is if it is False for it not to appear on my pop-up. What am I doing wrong or misunderstanding?