<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Can IIf() handle a conditional expression with more than one clause? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/can-iif-handle-a-conditional-expression-with-more/m-p/1143188#M44327</link>
    <description>&lt;P&gt;Oh my gosh. I feel foolish! Thank you for the syntax correction! I was moving back and forth between Arcade and SQL and got my operators mixed up.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Feb 2022 18:15:48 GMT</pubDate>
    <dc:creator>AmyRoust</dc:creator>
    <dc:date>2022-02-11T18:15:48Z</dc:date>
    <item>
      <title>Can IIf() handle a conditional expression with more than one clause?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/can-iif-handle-a-conditional-expression-with-more/m-p/1143103#M44320</link>
      <description>&lt;P&gt;I need to write an Arcade statement that evaluates the values in more than one field before deciding if the expression is true or false. I'm testing in Pro without success, but since my end product will be in ArcGIS Online, I thought I'd post in this community.&lt;/P&gt;&lt;P&gt;The expression is basically like this:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;IIf(textField=='Yes' and IsEmpty(dateField), 'TRUE', 'FALSE')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Pro, I keep getting an error message saying &lt;EM&gt;Close parenthesis expected&lt;/EM&gt;. I tried wrapping the whole expression in parentheses like this:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;IIf((textField=='Yes' and IsEmpty(dateField)), 'TRUE', 'FALSE')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I still get the same error message.&lt;/P&gt;&lt;P&gt;Is it possible that IIf() cannot evaluate true/false when the statement has multiple clauses?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 16:30:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/can-iif-handle-a-conditional-expression-with-more/m-p/1143103#M44320</guid>
      <dc:creator>AmyRoust</dc:creator>
      <dc:date>2022-02-11T16:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can IIf() handle a conditional expression with more than one clause?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/can-iif-handle-a-conditional-expression-with-more/m-p/1143144#M44324</link>
      <description>&lt;P&gt;You have to use "&amp;amp;&amp;amp;" instead of "and". Take a look at the list of &lt;A href="https://developers.arcgis.com/arcade/guide/logic/#operators" target="_self"&gt;Operators&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;IIf(textField=='Yes' &amp;amp;&amp;amp; IsEmpty(dateField), 'TRUE', 'FALSE')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 17:21:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/can-iif-handle-a-conditional-expression-with-more/m-p/1143144#M44324</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2022-02-11T17:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can IIf() handle a conditional expression with more than one clause?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/can-iif-handle-a-conditional-expression-with-more/m-p/1143188#M44327</link>
      <description>&lt;P&gt;Oh my gosh. I feel foolish! Thank you for the syntax correction! I was moving back and forth between Arcade and SQL and got my operators mixed up.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 18:15:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/can-iif-handle-a-conditional-expression-with-more/m-p/1143188#M44327</guid>
      <dc:creator>AmyRoust</dc:creator>
      <dc:date>2022-02-11T18:15:48Z</dc:date>
    </item>
  </channel>
</rss>

