<?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: Nested if statements in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/nested-if-statements/m-p/823051#M16280</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If Stephen's suggestions work for you, please mark his comment as the answer to close out this question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Sep 2018 13:22:17 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2018-09-27T13:22:17Z</dc:date>
    <item>
      <title>Nested if statements</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/nested-if-statements/m-p/823048#M16277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to assign a label based on a size range but it is not working. Here is the stament I am using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(${c_lenght_cal} &amp;lt;= 5, "Hatchling", (if${c_lenght_cal} &amp;gt;5 and ${c_lenght_cal} &amp;lt;=10, "Post-hatchling",(if${c_lenght_cal} &amp;gt;10 and ${c_lenght_cal} &amp;lt;=60, "Juvenile", (if${c_lenght_cal} &amp;gt;60 and ${c_lenght_cal} &amp;lt;=92, "Subadult", "Adult"))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2018 13:19:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/nested-if-statements/m-p/823048#M16277</guid>
      <dc:creator>AJM</dc:creator>
      <dc:date>2018-09-25T13:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if statements</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/nested-if-statements/m-p/823049#M16278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like you have the parentheses within the statement on the wrong side of the ifs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This worked for me:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;if(${c_length_cal} &amp;lt;= 5, "Hatchling", if(${c_length_cal} &amp;gt; 5 and ${c_length_cal} &amp;lt;= 10, "Post-hatchling", if(${c_length_cal} &amp;gt; 10 and ${c_length_cal} &amp;lt;=60, "Juvenile", if(${c_length_cal} &amp;gt; 60 and ${c_length_cal} &amp;lt;= 92, "Subadult","Adult"))))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For what it's worth, I think you might be able to shorten this statement as well. I don't think you need the&amp;nbsp;&amp;gt; statements, since the previous &amp;lt;= statement will have already evaluated to true.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'courier new', courier, monospace;"&gt;if(${c_length_cal} &amp;lt;= 5, "Hatchling", if(${c_length_cal} &amp;lt;= 10, "Post-hatchling", if(${c_length_cal} &amp;lt;=60, "Juvenile", if(${c_length_cal} &amp;lt;= 92, "Subadult","Adult"))))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2018 21:48:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/nested-if-statements/m-p/823049#M16278</guid>
      <dc:creator>StephenM</dc:creator>
      <dc:date>2018-09-26T21:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if statements</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/nested-if-statements/m-p/823050#M16279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks I just figure out the parentheses and got it working a little while ago also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I like the idea of shortening the statement so I will give that a try !&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2018 21:58:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/nested-if-statements/m-p/823050#M16279</guid>
      <dc:creator>AJM</dc:creator>
      <dc:date>2018-09-26T21:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Nested if statements</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/nested-if-statements/m-p/823051#M16280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If Stephen's suggestions work for you, please mark his comment as the answer to close out this question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2018 13:22:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/nested-if-statements/m-p/823051#M16280</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-09-27T13:22:17Z</dc:date>
    </item>
  </channel>
</rss>

