<?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: Conditional if statement:  Null in expression in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/conditional-if-statement-null-in-expression/m-p/769333#M3315</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Joe. Do you mean one of the fields has no calculation? It looks like all have somethign in them, there are no NULLs&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jun 2018 15:28:42 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2018-06-15T15:28:42Z</dc:date>
    <item>
      <title>Conditional if statement:  Null in expression</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/conditional-if-statement-null-in-expression/m-p/769331#M3313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to get some conditional if statements to work and I'm receiving an error that there is a NULL in the expression:&amp;nbsp;&amp;nbsp;if(${SARP_SCORE},1,'No Barrier',if((${SARP_SCORE},&amp;lt; 1) and (${SARP_SCORE},&amp;gt;=0.8),'Insignificant Barrier',if((${SARP_SCORE},&amp;lt; 0.8) and (${SARP_SCORE},&amp;gt;=0.6),'Minor Barrier',if((${SARP_SCORE},&amp;lt; 0.6) and (${SARP_SCORE},&amp;gt;=0.4),'Moderate Barrier',if((${SARP_SCORE}, &amp;lt;0.4 ) and (${SARP_SCORE},&amp;gt;=0.2),'Significant Barrier',if((${SARP_SCORE},&amp;lt; 0.2) and (${SARP_SCORE},&amp;gt;=0),'Severe Barrier','Not Scored'))))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any insight?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2018 19:02:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/conditional-if-statement-null-in-expression/m-p/769331#M3313</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-06-14T19:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional if statement:  Null in expression</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/conditional-if-statement-null-in-expression/m-p/769332#M3314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it means that one of the fields you are querying has a&amp;nbsp;&amp;lt;Null&amp;gt; value in it.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2018 19:30:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/conditional-if-statement-null-in-expression/m-p/769332#M3314</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2018-06-14T19:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional if statement:  Null in expression</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/conditional-if-statement-null-in-expression/m-p/769333#M3315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Joe. Do you mean one of the fields has no calculation? It looks like all have somethign in them, there are no NULLs&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2018 15:28:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/conditional-if-statement-null-in-expression/m-p/769333#M3315</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-06-15T15:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional if statement:  Null in expression</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/conditional-if-statement-null-in-expression/m-p/769334#M3316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's what I was thinking, yes.&amp;nbsp; But if that's not the case, take a look at the nests of if statements you have.&amp;nbsp; It's really easy to miss a paren here or there in this style of scripting.&amp;nbsp; I know my eyes go crossed in no time!&amp;nbsp; Give me&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; some_condition&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp; do_something
&lt;SPAN class="keyword token"&gt;elif&lt;/SPAN&gt; some_other_condtion&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp; do_something_different
&lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp; do_something_altogether_different&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;And I'm a happy guy.&amp;nbsp; What I've done in the past is write the nested conditions like what you are working with one at a time and try them, until I have the whole enchilada working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see:&amp;nbsp;&amp;nbsp;&lt;A href="https://community.esri.com/thread/214429" target="_blank"&gt;How to use "if" and "then" on survey 123?&lt;/A&gt;&amp;nbsp; &amp;nbsp;&lt;A href="https://community.esri.com/thread/190591" target="_blank"&gt;Help with IIF statement&lt;/A&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;A href="https://community.esri.com/blogs/mapguymike/2017/02/21/nested-iifs-in-attribute-assistant" target="_blank"&gt;/blogs/mapguymike/2017/02/21/nested-iifs-in-attribute-assistant&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/message/635756-iif-function-in-dynamic-value-table" target="_blank"&gt;https://community.esri.com/message/635756-iif-function-in-dynamic-value-table&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:34:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/conditional-if-statement-null-in-expression/m-p/769334#M3316</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-12-12T08:34:54Z</dc:date>
    </item>
  </channel>
</rss>

